Package com.pnfsoftware.jeb.client
Class JebNet
java.lang.Object
com.pnfsoftware.jeb.client.JebNet
Network utility routines for specific JEB client operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longRetrieve the timestamp provided by a well-known http server.static StringInternal routine to POST ax-www-form-urlencodeddata attribute to the JPS or the floating license controller.static StringInternal routine to POST ax-www-form-urlencodeddata attribute to the JPS or the floating license controller.static StringuploadFile(INet net, File f, boolean protectFile) Upload a sample file related to a bug report to the JEB portal for.static StringuploadFile(INet net, File f, boolean protectFile, String url) Upload a sample file related to a bug report to the JEB portal for.
-
Constructor Details
-
JebNet
public JebNet()
-
-
Method Details
-
post
Internal routine to POST ax-www-form-urlencodeddata attribute to the JPS or the floating license controller.- Parameters:
net- a network objecturl- address urldata- data to post; will be the value of a "data=value" pair posted to the server- Returns:
- the server response
-
post
Internal routine to POST ax-www-form-urlencodeddata attribute to the JPS or the floating license controller.- Parameters:
net- a network objecturl- address urldata- data to post; will be the value of a "data=value" pair posted to the serverserverTimestampArray- optional, filled with the server timestamp provided in the HTTP response (epoch in ms)- Returns:
- the server response
-
getSupposedlyGoodEpoch
Retrieve the timestamp provided by a well-known http server.- Parameters:
net-- Returns:
- server epoch in ms; 0 on error (that is, Jan 1 1970)
-
uploadFile
Upload a sample file related to a bug report to the JEB portal for.- Parameters:
net-f-protectFile-- Returns:
- server response
- Throws:
IOException
-
uploadFile
public static String uploadFile(INet net, File f, boolean protectFile, String url) throws IOException Upload a sample file related to a bug report to the JEB portal for.- Parameters:
net-f-protectFile-url- optional; if null, the standard JEB.IO upload-sample end-point will be used- Returns:
- server response
- Throws:
IOException
-