m.c.m.proxyma.resource
Class ProxymaResourceFactory
java.lang.Object
m.c.m.proxyma.resource.ProxymaResourceFactory
public class ProxymaResourceFactory
- extends java.lang.Object
This the "FactoryMethod" to build the new instances of proxyma resources.
Currently it can build a ProxymaResource from HttpServlet request and response,
but it will be easy to add more "sources" like Portlet requests and responses.
NOTE: this software is released under GPL License.
See the LICENSE of this distribution for more informations.
- Version:
- $Id: ProxymaResourceFactory.java 152 2010-06-26 18:37:48Z marcolinuz $
- Author:
- Marco Casavecchia Morganti (marcolinuz) [marcolinuz-at-gmail.com]
Method Summary |
ProxymaResource |
createNewResource(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ProxymaContext context)
This method creates a complete instance of ProxymaResource form a
servlet request, a servlet response and a proxyma context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxymaResourceFactory
public ProxymaResourceFactory()
createNewResource
public ProxymaResource createNewResource(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ProxymaContext context)
throws org.apache.commons.lang.NullArgumentException
- This method creates a complete instance of ProxymaResource form a
servlet request, a servlet response and a proxyma context.
The produced resource can be handled by the reverse proxy engine and
by any of its registered plugins.
- Parameters:
request
- the servlet container request.response
- the servlet container responsecontext
- the proxyma context where the resource will live.
- Returns:
- an resource that can be directly handled by the ProxyEngine.
- Throws:
org.apache.commons.lang.NullArgumentException
- if any of the passed parameters is null
Copyright © 2010. All Rights Reserved.