Package org.glassfish.admin.rest.utils
Interface Proxy
-
- All Known Implementing Classes:
ProxyImpl
public interface ProxyImplements- Author:
- Mitesh Meswani
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description jakarta.ws.rs.core.UriBuilderconstructForwardURLPath(jakarta.ws.rs.core.UriInfo sourceUriInfo)construct URL that will be used to contact the targetjakarta.ws.rs.core.UriBuilderconstructTargetURLPath(jakarta.ws.rs.core.UriInfo sourceUriInfo, URL responseURLReceivedFromTarget)construct URL to be given back to the client by processing the response URL received from targetStringextractTargetInstanceName(jakarta.ws.rs.core.UriInfo uriInfo)Extract instance name from givenuriInfoPropertiesproxyRequest(jakarta.ws.rs.core.UriInfo sourceUriInfo, jakarta.ws.rs.client.Client client, org.glassfish.hk2.api.ServiceLocator habitat)Execute request in givensourceUriInfoby 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 givensourceUriInfoby 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 givenuriInfo
-
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
-
-