Class JsonServiceDescriptor

java.lang.Object
chemaxon.marvin.services.ServiceDescriptor
chemaxon.marvin.services.json.JsonServiceDescriptor

@PublicAPI public class JsonServiceDescriptor extends chemaxon.marvin.services.ServiceDescriptor
Service descriptor of JSON type requests.
Since:
5.6
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    request method
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Property key for Service descriptor as String

    Fields inherited from class chemaxon.marvin.services.ServiceDescriptor

    ALIAS, ARGUMENTS, DESCRIPTION, METHOD, NAME, propertyChangeSupport, serviceHandler, URL
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    chemaxon.marvin.services.json.JsonServiceHandler
     
    Gets the URI of the JSON RPC descriptor file
    static int
    getId(String operationName)
    Gets 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.
     
    void
    setDescriptorURI(String descriptorURI)
    Sets the URI of the JSON RPC descriptor file
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • JsonServiceDescriptor

      public JsonServiceDescriptor()
  • Method Details

    • getRequestMethod

      public JsonServiceDescriptor.Method getRequestMethod()
      Gets the HTTP method of the request.
      Returns:
      The HTTP method of the request
    • setRequestMethod

      public void setRequestMethod(JsonServiceDescriptor.Method requestMethod)
      Sets the HTTP method of the request.
      Parameters:
      requestMethod - The HTTP method of the request
    • getSimpleName

      public String getSimpleName()
      Overrides:
      getSimpleName in class chemaxon.marvin.services.ServiceDescriptor
    • getDescriptorURI

      public String getDescriptorURI()
      Gets the URI of the JSON RPC descriptor file
      Returns:
      URI of JSON RPC descriptor file
    • setDescriptorURI

      public void setDescriptorURI(String descriptorURI)
      Sets the URI of the JSON RPC descriptor file
      Parameters:
      descriptorURI - URI of JSON RPC descriptor file
    • getId

      public static int getId(String operationName)
      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

      public chemaxon.marvin.services.json.JsonServiceHandler createServiceHandler()
      Specified by:
      createServiceHandler in class chemaxon.marvin.services.ServiceDescriptor