Class JsonUtilServiceFactory

    • Method Detail

      • getTypes

        public java.lang.String[] getTypes​(java.lang.String version)
        Description copied from interface: JsonServiceFactory
        Get the service type(s) for services created by this factory respond to. These type must have valid schemas for messages received from a client and sent to a client.

        Types should be single words, in camelCase if needed, unless supporting a plural noun introduced in the JSON 1.x or 2.x protocols and exposed in the JSON 3.0 or newer protocol.

        If a service returns no types, it will never be used.

        Specified by:
        getTypes in interface JsonServiceFactory<JsonUtilHttpService,​JsonUtilSocketService>
        Parameters:
        version - The JSON protocol version major component identifier
        Returns:
        An array of types this service responds to
      • getSentTypes

        public java.lang.String[] getSentTypes​(java.lang.String version)
        Description copied from interface: JsonServiceFactory
        Get the message type(s) services created by this factory send, if not also listed in JsonServiceFactory.getTypes(String). These types must only have schemas for messages sent to a client.

        Types should be single words, in camelCase if needed, unless supporting a plural noun introduced in the JSON 1.x or 2.x protocols and exposed in the JSON 3.0 or newer protocol.

        Specified by:
        getSentTypes in interface JsonServiceFactory<JsonUtilHttpService,​JsonUtilSocketService>
        Parameters:
        version - The JSON protocol version major component identifier
        Returns:
        An array of types this service sends, but does not respond to
      • getReceivedTypes

        public java.lang.String[] getReceivedTypes​(java.lang.String version)
        Description copied from interface: JsonServiceFactory
        Get the message type(s) services created by this factory receive, if not also listed in JsonServiceFactory.getTypes(String). These types must only have schemas for messages received from a client.

        Types should be single words, in camelCase if needed, unless supporting a plural noun introduced in the JSON 1.x or 2.x protocols and exposed in the JSON 3.0 or newer protocol.

        Specified by:
        getReceivedTypes in interface JsonServiceFactory<JsonUtilHttpService,​JsonUtilSocketService>
        Parameters:
        version - The JSON protocol version major component identifier
        Returns:
        An array of types this service sends, but does not respond to