Interface Proxy

  • All Known Implementing Classes:
    ProxyImpl

    public interface Proxy
    Implements
    Author:
    Mitesh Meswani
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.UriBuilder constructForwardURLPath​(jakarta.ws.rs.core.UriInfo sourceUriInfo)
      construct URL that will be used to contact the target
      jakarta.ws.rs.core.UriBuilder constructTargetURLPath​(jakarta.ws.rs.core.UriInfo sourceUriInfo, URL responseURLReceivedFromTarget)
      construct URL to be given back to the client by processing the response URL received from target
      String extractTargetInstanceName​(jakarta.ws.rs.core.UriInfo uriInfo)
      Extract instance name from given uriInfo
      Properties proxyRequest​(jakarta.ws.rs.core.UriInfo sourceUriInfo, jakarta.ws.rs.client.Client client, org.glassfish.hk2.api.ServiceLocator habitat)
      Execute request in given sourceUriInfo by acting as a proxy to the target instance
    • Method Detail

      • proxyRequest

        Properties proxyRequest​(jakarta.ws.rs.core.UriInfo sourceUriInfo,
                                jakarta.ws.rs.client.Client client,
                                org.glassfish.hk2.api.ServiceLocator habitat)
        Execute request in given sourceUriInfo by acting as a proxy to the target instance
        Returns:
        Result of execution as Properties object
      • extractTargetInstanceName

        String extractTargetInstanceName​(jakarta.ws.rs.core.UriInfo uriInfo)
        Extract instance name from given uriInfo
      • constructForwardURLPath

        jakarta.ws.rs.core.UriBuilder constructForwardURLPath​(jakarta.ws.rs.core.UriInfo sourceUriInfo)
        construct URL that will be used to contact the target
      • constructTargetURLPath

        jakarta.ws.rs.core.UriBuilder constructTargetURLPath​(jakarta.ws.rs.core.UriInfo sourceUriInfo,
                                                             URL responseURLReceivedFromTarget)
        construct URL to be given back to the client by processing the response URL received from target