Package chemaxon.marvin.services.json
Class JsonServiceDescriptor
java.lang.Object
chemaxon.marvin.services.ServiceDescriptor
chemaxon.marvin.services.json.JsonServiceDescriptor
Service descriptor of JSON type requests.
- Since:
- 5.6
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty key for Service descriptor asStringFields inherited from class chemaxon.marvin.services.ServiceDescriptor
ALIAS, ARGUMENTS, DESCRIPTION, METHOD, NAME, propertyChangeSupport, serviceHandler, URL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new service handler for this descriptor.Gets the URI of the JSON RPC descriptor filestatic intGets an ID for a method name, to make sure the client can identify the answer for the request.Gets the HTTP method of the request.Returns the simple name of the service typevoidsetDescriptorURI(String descriptorURI) Sets the URI of the JSON RPC descriptor filevoidsetRequestMethod(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, getServiceHandler, getURL, isAvailable, removeArgument, setAlias, setArgument, setDescription, setMethodName, setName, setProperty, setURL, toString
-
Field Details
-
DESCRIPTOR_URI
Property key for Service descriptor asString- See Also:
-
-
Constructor Details
-
JsonServiceDescriptor
public JsonServiceDescriptor()
-
-
Method Details
-
getRequestMethod
Gets the HTTP method of the request.- Returns:
- The HTTP method of the request
-
setRequestMethod
Sets the HTTP method of the request.- Parameters:
requestMethod- The HTTP method of the request
-
getSimpleName
Description copied from class:ServiceDescriptorReturns the simple name of the service type- Overrides:
getSimpleNamein classServiceDescriptor- Returns:
- the simple name of the service type
-
getDescriptorURI
Gets the URI of the JSON RPC descriptor file- Returns:
- URI of JSON RPC descriptor file
-
setDescriptorURI
Sets the URI of the JSON RPC descriptor file- Parameters:
descriptorURI- URI of JSON RPC descriptor file
-
getId
Gets an ID for a method name, to make sure the client can identify the answer for the request.- Parameters:
operationName- The name of the selected operation.- Returns:
- An integer ID that is usable for the next method call of the given operation.
-
createServiceHandler
Description copied from class:ServiceDescriptorCreates a new service handler for this descriptor. The returned handler is capable to perform service call on the service described by this descriptor- Specified by:
createServiceHandlerin classServiceDescriptor- Returns:
- a service handler instance for this descriptor
-