Package org.glassfish.admin.rest.utils
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 targetjakarta.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 targetString
extractTargetInstanceName(jakarta.ws.rs.core.UriInfo uriInfo)
Extract instance name from givenuriInfo
Properties
proxyRequest(jakarta.ws.rs.core.UriInfo sourceUriInfo, jakarta.ws.rs.client.Client client, org.glassfish.hk2.api.ServiceLocator habitat)
Execute request in givensourceUriInfo
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 givensourceUriInfo
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 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
-
-