org.glassfish.admin.rest.utils
Interface Proxy

All Known Implementing Classes:
ProxyImpl

public interface Proxy

Implements

Author:
Mitesh Meswani

Method Summary
 javax.ws.rs.core.UriBuilder constructForwardURLPath(javax.ws.rs.core.UriInfo sourceUriInfo)
          construct URL that will be used to contact the target
 javax.ws.rs.core.UriBuilder constructTargetURLPath(javax.ws.rs.core.UriInfo sourceUriInfo, java.net.URL responseURLReceivedFromTarget)
          construct URL to be given back to the client by processing the response URL received from target
 java.lang.String extractTargetInstanceName(javax.ws.rs.core.UriInfo uriInfo)
          Extract instance name from given uriInfo
 java.util.Properties proxyRequest(javax.ws.rs.core.UriInfo sourceUriInfo, org.jvnet.hk2.component.Habitat habitat)
          Execute request in given sourceUriInfo by acting as a proxy to the target instance
 

Method Detail

proxyRequest

java.util.Properties proxyRequest(javax.ws.rs.core.UriInfo sourceUriInfo,
                                  org.jvnet.hk2.component.Habitat habitat)
Execute request in given sourceUriInfo by acting as a proxy to the target instance

Returns:
Result of execution as Properties object

extractTargetInstanceName

java.lang.String extractTargetInstanceName(javax.ws.rs.core.UriInfo uriInfo)
Extract instance name from given uriInfo


constructForwardURLPath

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


constructTargetURLPath

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



Copyright © 2012 GlassFish Community. All Rights Reserved.