Class JsonFilteredResources


  • public final class JsonFilteredResources
    extends Object
    This class contains methods for creating and manipulating connection factories and connections.

    It is similar to Resources but does not filter nested JSON objects.

    • Method Detail

      • newInternalConnection

        public static Connection newInternalConnection​(RequestHandler handler)
        Creates a new connection to a RequestHandler.
        Parameters:
        handler - The request handler to which client requests should be forwarded.
        Returns:
        The new internal connection.
        Throws:
        NullPointerException - If handler was null.
      • newInternalConnectionFactory

        public static ConnectionFactory newInternalConnectionFactory​(RequestHandler handler)
        Creates a new connection factory which binds internal client connections to RequestHandlers.
        Parameters:
        handler - The request handler to which client requests should be forwarded.
        Returns:
        The new internal connection factory.
        Throws:
        NullPointerException - If handler was null.