com.sun.enterprise.web
Class ProxyHandlerImpl

java.lang.Object
  extended by com.sun.appserv.ProxyHandler
      extended by com.sun.enterprise.web.ProxyHandlerImpl

public class ProxyHandlerImpl
extends ProxyHandler

Default ProxyHandler implementation.


Constructor Summary
ProxyHandlerImpl()
           
 
Method Summary
 java.lang.String getRemoteAddress(javax.servlet.http.HttpServletRequest request)
          Gets the Internet Protocol (IP) source port of the client request that was intercepted by the proxy server.
 java.security.cert.X509Certificate[] getSSLClientCertificateChain(javax.servlet.http.HttpServletRequest request)
          Gets the SSL client certificate chain with which the client had authenticated itself to the SSL offloader, and which the SSL offloader has added as a custom request header on the given request.
 int getSSLKeysize(javax.servlet.http.HttpServletRequest request)
          Returns the SSL keysize with which the original client request that was intercepted by the SSL offloader has been protected, and which the SSL offloader has added as a custom request header on the given request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyHandlerImpl

public ProxyHandlerImpl()
Method Detail

getSSLClientCertificateChain

public java.security.cert.X509Certificate[] getSSLClientCertificateChain(javax.servlet.http.HttpServletRequest request)
                                                                  throws java.security.cert.CertificateException
Gets the SSL client certificate chain with which the client had authenticated itself to the SSL offloader, and which the SSL offloader has added as a custom request header on the given request.

Overrides:
getSSLClientCertificateChain in class ProxyHandler
Parameters:
request - The request from which to retrieve the SSL client certificate chain
Returns:
Array of java.security.cert.X509Certificate instances representing the SSL client certificate chain, or null if this information is not available from the given request
Throws:
java.security.cert.CertificateException - if the certificate chain retrieved from the request header cannot be parsed

getSSLKeysize

public int getSSLKeysize(javax.servlet.http.HttpServletRequest request)
Returns the SSL keysize with which the original client request that was intercepted by the SSL offloader has been protected, and which the SSL offloader has added as a custom request header on the given request.

Overrides:
getSSLKeysize in class ProxyHandler
Parameters:
request - The request from which to retrieve the SSL key size
Returns:
SSL keysize, or -1 if this information is not available from the given request

getRemoteAddress

public java.lang.String getRemoteAddress(javax.servlet.http.HttpServletRequest request)
Gets the Internet Protocol (IP) source port of the client request that was intercepted by the proxy server.

Overrides:
getRemoteAddress in class ProxyHandler
Parameters:
request - The request from which to retrieve the IP source port of the original client request
Returns:
IP source port of the original client request, or null if this information is not available from the given request


Copyright © 2012 GlassFish Community. All Rights Reserved.