Class JaxRsClientResource

    • Constructor Detail

      • JaxRsClientResource

        public JaxRsClientResource​(Context context,
                                   Reference reference)
        Deprecated.
    • Method Detail

      • createJaxRsClient

        public static <T> T createJaxRsClient​(Context context,
                                              Reference reference,
                                              java.lang.Class<? extends T> resourceInterface)
        Deprecated.
        Creates a client resource that proxy calls to the given Java interface into Restlet method calls.
        Type Parameters:
        T -
        Parameters:
        context - The context.
        reference - The target reference.
        resourceInterface - The annotated resource interface class to proxy.
        Returns:
        The proxy instance.
      • createJaxRsClient

        public static <T> T createJaxRsClient​(java.lang.String baseUri,
                                              java.lang.Class<? extends T> resourceInterface)
                                       throws JaxRsException
        Deprecated.
        Creates a client resource that proxy calls to the given Java interface into Restlet method calls.
        Type Parameters:
        T -
        Parameters:
        baseUri - The target URI.
        resourceInterface - The annotated resource interface class to proxy.
        Returns:
        The proxy instance.
        Throws:
        JaxRsException
      • wrap

        public <T> T wrap​(java.lang.Class<? extends T> resourceInterface)
        Deprecated.
        Wraps the client resource to proxy calls to the given Java interface into Restlet method calls.
        Overrides:
        wrap in class ClientResource
        Type Parameters:
        T -
        Parameters:
        resourceInterface - The annotated resource interface class to proxy.
        Returns:
        The proxy instance.