|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.atlassian.confluence.plugins.crowdproxy.CrowdProxyServlet
public class CrowdProxyServlet
Provide access to the Crowd REST API to system administrators in OnDemand. It's protected from access outside of the host. For testing purposes only.
| Field Summary | |
|---|---|
protected static java.lang.String |
AUTHORIZATION_HTTP_HEADER_KEY
|
protected static java.lang.String |
CROWD_CREDENTIALS
|
protected static java.lang.String |
HTTP_REQUEST_HEADER_CONTENT_LENGTH
|
| Constructor Summary | |
|---|---|
CrowdProxyServlet(PermissionManager permissionManager)
|
|
| Method Summary | |
|---|---|
protected org.apache.http.HttpRequest |
buildCrowdRequest(javax.servlet.http.HttpServletRequest incomingRequest)
Builds the request to Crowd using the incoming request to the Crowd proxy. |
protected void |
buildResponse(org.apache.http.HttpResponse crowdResponse,
javax.servlet.http.HttpServletResponse response)
Sends an HTTP response based off the incoming response from Crowd. |
protected org.apache.http.HttpRequest |
createCrowdRequest(javax.servlet.http.HttpServletRequest incomingRequest,
java.lang.String crowdUrl)
Returns a request for Crowd, including its entity body if present. |
protected org.apache.http.HttpResponse |
executeCrowdRequest(org.apache.http.HttpRequest crowdRequest)
Executes the request to Crowd. |
java.lang.String |
getServletInfo()
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
setCrowdRequestHeaders(javax.servlet.http.HttpServletRequest incomingRequest,
org.apache.http.HttpRequest crowdRequest)
Sets the required HTTP Headers in the request sent to Crowd resource. |
protected void |
setResponseHeaders(org.apache.http.HttpResponse crowdResponse,
javax.servlet.http.HttpServletResponse response)
Sets the response headers, based off the ones received in the Crowd response. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String AUTHORIZATION_HTTP_HEADER_KEY
protected static final java.lang.String CROWD_CREDENTIALS
protected static final java.lang.String HTTP_REQUEST_HEADER_CONTENT_LENGTH
| Constructor Detail |
|---|
public CrowdProxyServlet(PermissionManager permissionManager)
| Method Detail |
|---|
public java.lang.String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServlet
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
service in class javax.servlet.http.HttpServlet
protected org.apache.http.HttpRequest buildCrowdRequest(javax.servlet.http.HttpServletRequest incomingRequest)
throws java.io.IOException
java.io.IOException
protected org.apache.http.HttpRequest createCrowdRequest(javax.servlet.http.HttpServletRequest incomingRequest,
java.lang.String crowdUrl)
throws java.io.IOException
java.io.IOException
protected void setCrowdRequestHeaders(javax.servlet.http.HttpServletRequest incomingRequest,
org.apache.http.HttpRequest crowdRequest)
protected org.apache.http.HttpResponse executeCrowdRequest(org.apache.http.HttpRequest crowdRequest)
throws java.io.IOException
java.io.IOException
protected void buildResponse(org.apache.http.HttpResponse crowdResponse,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
java.io.IOException
protected void setResponseHeaders(org.apache.http.HttpResponse crowdResponse,
javax.servlet.http.HttpServletResponse response)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||