Class EndPointProxyServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.springframework.extensions.webscripts.servlet.EndPointProxyServlet
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class EndPointProxyServlet extends javax.servlet.http.HttpServletDeprecated.EndPoint HTTP Proxy Servlet. Provides the ability to submit a URL request via a configured end point such as a remote Alfresco Server. Makes use of the Connector framework so that appropriate authentication is automatically applied to the proxied request as applicable. This servlet accepts URIs of the following format: /proxy/[/uri]*[?[ = ]*] Where: - endpointid is the ID of a configured EndPoint model object to make a request against - url is the uri to call on the EndPoint URL e.g. /api/sites - argName is the name of a URL argument to append to the request - argValue is the value of URL argument E.g. /proxy/alfresco/api/sites?name=mysite&desc=description The proxy supports all valid HTTP methods. - Author:
- kevinr
- See Also:
EndPointProxyController, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected RemoteConfigElementconfigDeprecated.protected ConnectorServiceconnectorServiceDeprecated.
-
Constructor Summary
Constructors Constructor Description EndPointProxyServlet()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidinit()Deprecated.protected voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)Deprecated.-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Field Detail
-
config
protected RemoteConfigElement config
Deprecated.
-
connectorService
protected ConnectorService connectorService
Deprecated.
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletExceptionDeprecated.- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
service
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOExceptionDeprecated.- Overrides:
servicein classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
-