|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.services.ServiceDescriptor
chemaxon.marvin.services.json.JsonServiceDescriptor
public class JsonServiceDescriptor
Service descriptor of JSON type requests.
| Nested Class Summary | |
|---|---|
static class |
JsonServiceDescriptor.Method
request method |
| Field Summary | |
|---|---|
static java.lang.String |
DESCRIPTOR_URI
Property key for Service descriptor as String |
| Fields inherited from class chemaxon.marvin.services.ServiceDescriptor |
|---|
ALIAS, ARGUMENTS, DESCRIPTION, METHOD, NAME, propertyChangeSupport, URL |
| Constructor Summary | |
|---|---|
JsonServiceDescriptor()
|
|
| Method Summary | |
|---|---|
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. |
chemaxon.marvin.services.json.JsonServiceHandler |
getServiceHandler()
Returns a service handler instance for this descriptor. |
java.lang.String |
getSimpleName()
Returns the simple name of the service type |
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. |
| Methods inherited from class chemaxon.marvin.services.ServiceDescriptor |
|---|
addArgument, getAlias, getArgument, getArgumentCount, getArguments, getDescription, getIcon, getMethodName, getName, getProperty, getPropertyChangeSupport, getPropertyKeys, getURL, isAvailable, removeArgument, setAlias, setArgument, setDescription, setMethodName, setName, setProperty, setURL, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DESCRIPTOR_URI
String
| Constructor Detail |
|---|
public JsonServiceDescriptor()
| Method Detail |
|---|
public chemaxon.marvin.services.json.JsonServiceHandler getServiceHandler()
chemaxon.marvin.services.ServiceDescriptor
getServiceHandler in class chemaxon.marvin.services.ServiceDescriptorpublic JsonServiceDescriptor.Method getRequestMethod()
public void setRequestMethod(JsonServiceDescriptor.Method requestMethod)
requestMethod - The HTTP method of the requestpublic java.lang.String getSimpleName()
chemaxon.marvin.services.ServiceDescriptor
getSimpleName in class chemaxon.marvin.services.ServiceDescriptorpublic 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||