org.openxri.proxy.impl
Class BasicProxy

java.lang.Object
  extended by org.openxri.proxy.impl.AbstractProxy
      extended by org.openxri.proxy.impl.BasicProxy
All Implemented Interfaces:
Proxy

public class BasicProxy
extends AbstractProxy


Field Summary
 
Fields inherited from class org.openxri.proxy.impl.AbstractProxy
_XRD_M, _XRD_R, _XRD_T, bareXRINotFoundRedirect, config, HTTP_ERROR_CONTENT_TYPE, HTTP_XML_CONTENT_TYPE, log, resolver, rootRedirect, supportRedirect, supportURIList, supportXRD, supportXRDS
 
Constructor Summary
BasicProxy(ProxyConfig config)
           
 
Method Summary
 boolean onBeforeResolution(java.lang.String qxri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Hook method which gets called BEFORE resolution takes place
 boolean onPartialResolutionSuccess(java.lang.String qxri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, int errorCode, java.lang.String errorMessage, PartialResolutionException pre)
          Hook method which gets called AFTER resolution has only been partially successful
 boolean onResolutionSuccess(java.lang.String qxri, ResolverState state, java.lang.Object result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Hook method which gets called AFTER resolution has been successful
 
Methods inherited from class org.openxri.proxy.impl.AbstractProxy
init, parseQuery, process, processProxyRequest, send301, send303, sendError, sendError, sendFatalError, sendPartialResponse, sendResponse, sendResponse, sendResponse, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicProxy

public BasicProxy(ProxyConfig config)
Method Detail

onBeforeResolution

public boolean onBeforeResolution(java.lang.String qxri,
                                  javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)
Description copied from class: AbstractProxy
Hook method which gets called BEFORE resolution takes place

Specified by:
onBeforeResolution in class AbstractProxy
Parameters:
qxri - The XRI to be resolved
request - The http servlet request
response - The http servlet response
Returns:
True means the entire request has been completely handled by this method and nothing else will be done

onResolutionSuccess

public boolean onResolutionSuccess(java.lang.String qxri,
                                   ResolverState state,
                                   java.lang.Object result,
                                   javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
Description copied from class: AbstractProxy
Hook method which gets called AFTER resolution has been successful

Specified by:
onResolutionSuccess in class AbstractProxy
Parameters:
qxri - The XRI to be resolved
state - The resolution state after resolution
result - The resolution result (String or XRDS or XRD)
request - The http servlet request
response - The http servlet response
Returns:
True means the entire request has been completely handled by this method and nothing else will be done

onPartialResolutionSuccess

public boolean onPartialResolutionSuccess(java.lang.String qxri,
                                          javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response,
                                          int errorCode,
                                          java.lang.String errorMessage,
                                          PartialResolutionException pre)
Description copied from class: AbstractProxy
Hook method which gets called AFTER resolution has only been partially successful

Specified by:
onPartialResolutionSuccess in class AbstractProxy
Parameters:
qxri - The XRI to be resolved
request - The http servlet request
response - The http servlet response
Returns:
True means the entire request has been completely handled by this method and nothing else will be done


Copyright © 2005-2010. All Rights Reserved.