public class

JebNet

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.client.JebNet

Summary

Public Constructors
JebNet()
Public Methods
static long getSupposedlyGoodEpoch(INet net)
Retrieve the timestamp provided by a well-known http server.
static String post(INet net, String url, String data)
Internal routine to POST a x-www-form-urlencoded data attribute to the JPS or the floating license controller.
static String post(INet net, String url, String data, long[] serverTimestampArray)
Internal routine to POST a x-www-form-urlencoded data attribute to the JPS or the floating license controller.
static String uploadFile(INet net, File f, boolean protectFile, String url)
Upload a sample file related to a bug report to the JEB portal for.
static String uploadFile(INet net, File f, boolean protectFile)
Upload a sample file related to a bug report to the JEB portal for.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public JebNet ()

Public Methods

public static long getSupposedlyGoodEpoch (INet net)

Retrieve the timestamp provided by a well-known http server.

Returns
  • server epoch in ms; 0 on error (that is, Jan 1 1970)

public static String post (INet net, String url, String data)

Internal routine to POST a x-www-form-urlencoded data attribute to the JPS or the floating license controller.

Parameters
net a network object
data data to post; will be the value of a "data=value" pair posted to the server
Returns
  • the server response

public static String post (INet net, String url, String data, long[] serverTimestampArray)

Internal routine to POST a x-www-form-urlencoded data attribute to the JPS or the floating license controller.

Parameters
net a network object
data data to post; will be the value of a "data=value" pair posted to the server
serverTimestampArray optional, filled with the server timestamp provided in the HTTP response (epoch in ms)
Returns
  • the server response

public static String uploadFile (INet net, File f, boolean protectFile, String url)

Upload a sample file related to a bug report to the JEB portal for.

Parameters
url optional; if null, the standard JEB.IO upload-sample end-point will be used
Returns
  • server response
Throws
IOException

public static String uploadFile (INet net, File f, boolean protectFile)

Upload a sample file related to a bug report to the JEB portal for.

Returns
  • server response
Throws
IOException