@PublicAPI public class JsonServiceDescriptor extends chemaxon.marvin.services.ServiceDescriptor
Modifier and Type | Class and Description |
---|---|
static class |
JsonServiceDescriptor.Method
request method
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DESCRIPTOR_URI
Property key for Service descriptor as
String |
Constructor and Description |
---|
JsonServiceDescriptor() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescriptorURI()
Gets the URI of the JSON RPC descriptor file
|
static int |
getId(java.lang.String operationName)
Gets an ID for a method name, to make sure the client can identify the
answer for the request.
|
JsonServiceDescriptor.Method |
getRequestMethod()
Gets the HTTP method of the request.
|
java.lang.String |
getSimpleName() |
void |
setDescriptorURI(java.lang.String descriptorURI)
Sets the URI of the JSON RPC descriptor file
|
void |
setRequestMethod(JsonServiceDescriptor.Method requestMethod)
Sets the HTTP method of the request.
|
addArgument, getAlias, getArgument, getArgumentCount, getArguments, getDescription, getIcon, getMethodName, getName, getProperty, getPropertyChangeSupport, getPropertyKeys, getServiceHandler, getURL, isAvailable, removeArgument, setAlias, setArgument, setDescription, setMethodName, setName, setProperty, setURL, toString
public static final java.lang.String DESCRIPTOR_URI
String
public JsonServiceDescriptor.Method getRequestMethod()
public void setRequestMethod(JsonServiceDescriptor.Method requestMethod)
requestMethod
- The HTTP method of the requestpublic java.lang.String getSimpleName()
getSimpleName
in class chemaxon.marvin.services.ServiceDescriptor
public java.lang.String getDescriptorURI()
public void setDescriptorURI(java.lang.String descriptorURI)
descriptorURI
- URI of JSON RPC descriptor filepublic static int getId(java.lang.String operationName)
operationName
- The name of the selected operation.