public class ProxyServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected static String |
P_TARGET_URI
The parameter name for the target (destination) URI to proxy to.
|
protected String |
targetUri |
protected URI |
targetUriObj |
| Constructor and Description |
|---|
ProxyServlet(ServicesClient inClient) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDelete(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse) |
protected void |
doPost(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse) |
protected void |
doPut(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse) |
protected String |
getConfigParam(String key)
Reads a configuration parameter.
|
String |
getTargetUri()
The target URI as configured.
|
void |
init() |
doGet, doHead, doOptions, doTrace, getLastModified, service, serviceprotected String targetUri
protected URI targetUriObj
protected static final String P_TARGET_URI
@Inject public ProxyServlet(ServicesClient inClient)
protected String getConfigParam(String key)
key - the key.public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void doPut(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
throws javax.servlet.ServletException,
IOException
doPut in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doDelete(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
throws javax.servlet.ServletException,
IOException
doDelete in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic String getTargetUri()
Copyright © 2012–2015 Emory University. All rights reserved.