public class WebInterface extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_TYPE_BUGREPORT |
static java.lang.String |
ACTION_TYPE_SEARCH |
static java.lang.String |
BASE_URL |
static java.lang.String |
PARAM_ACTION |
static java.lang.String |
PARAM_CLASSNAME |
static java.lang.String |
PARAM_CLIENT_ID |
static java.lang.String |
PARAM_DEVELOPERID |
static java.lang.String |
PARAM_ERRORLOG |
static java.lang.String |
PARAM_FIELD |
static java.lang.String |
PARAM_ID |
static java.lang.String |
PARAM_JAVABITS |
static java.lang.String |
PARAM_JAVANAME |
static java.lang.String |
PARAM_JAVAVERSION |
static java.lang.String |
PARAM_KERNELVERSION |
static java.lang.String |
PARAM_OSARCH |
static java.lang.String |
PARAM_OSNAME |
static java.lang.String |
PARAM_OSVERSION |
static java.lang.String |
PARAM_PLUGINCLASSNAME |
static java.lang.String |
PARAM_PLUGINVERSION |
static java.lang.String |
PARAM_POSTTYPE |
static java.lang.String |
PARAM_SEARCH |
static java.lang.String |
SEARCH_TYPE_PLUGIN |
static java.lang.String |
SEARCH_TYPE_PROTOCOL |
static java.lang.String |
SEARCH_TYPE_SCRIPT |
Constructor and Description |
---|
WebInterface() |
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Document |
doSearch(java.lang.String text)
Process search on the website in all resources and return result in a XML Document.
|
static org.w3c.dom.Document |
doSearch(java.lang.String text,
java.lang.String type)
Process search on the website in a specific resource and return result in a XML Document.
|
static void |
reportError(PluginDescriptor plugin,
java.lang.String devId,
java.lang.String errorLog)
Report an error log from a given plugin or developer id to Icy web site.
|
public static final java.lang.String BASE_URL
public static final java.lang.String PARAM_ACTION
public static final java.lang.String PARAM_CLIENT_ID
public static final java.lang.String PARAM_ID
public static final java.lang.String PARAM_CLASSNAME
public static final java.lang.String PARAM_FIELD
public static final java.lang.String PARAM_SEARCH
public static final java.lang.String PARAM_POSTTYPE
public static final java.lang.String PARAM_KERNELVERSION
public static final java.lang.String PARAM_JAVANAME
public static final java.lang.String PARAM_JAVAVERSION
public static final java.lang.String PARAM_JAVABITS
public static final java.lang.String PARAM_OSNAME
public static final java.lang.String PARAM_OSVERSION
public static final java.lang.String PARAM_OSARCH
public static final java.lang.String PARAM_PLUGINCLASSNAME
public static final java.lang.String PARAM_PLUGINVERSION
public static final java.lang.String PARAM_DEVELOPERID
public static final java.lang.String PARAM_ERRORLOG
public static final java.lang.String ACTION_TYPE_SEARCH
public static final java.lang.String ACTION_TYPE_BUGREPORT
public static final java.lang.String SEARCH_TYPE_PLUGIN
public static final java.lang.String SEARCH_TYPE_SCRIPT
public static final java.lang.String SEARCH_TYPE_PROTOCOL
public WebInterface()
public static org.w3c.dom.Document doSearch(java.lang.String text, java.lang.String type) throws java.io.UnsupportedEncodingException
text
- Text used for the search request, it can contains several words and use operators.type
- type of resource we want to search in.java.io.UnsupportedEncodingException
public static org.w3c.dom.Document doSearch(java.lang.String text) throws java.io.UnsupportedEncodingException
text
- Text used for the search request, it can contains several words and use operators.java.io.UnsupportedEncodingException
public static void reportError(PluginDescriptor plugin, java.lang.String devId, java.lang.String errorLog)
plugin
- The plugin responsible of the error or null
if the error comes from the
application or if we are not able to get the plugin descriptor.devId
- The developer id of the plugin responsible of the error when the plugin descriptor was
not found or null
if the error comes from the application.errorLog
- Error log to report.