|
||||||||||
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
org.openxri.servlet.XRIServlet
public class XRIServlet
Provides a servlet implementation for the XRI resolution protocol The XRIServlet works like this: 1) During startup, construct an appropriate implementation of the ServerConfig interface, according to the init parameters in web.xml. 2) When a request comes in, use the URIMapper to parse it. 3) If the URIMapper does not know what to do with it, hand off the request to the Plugin. 4) Let the Server implementation class build an XRDS for the request data extracted by the URIMapper. 5) Send out the descriptor.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
|
protected Plugin |
plugin
The plugin that will handle all requests not recognized by the URI mapper |
protected Server |
server
The server object that will handle the incoming resolution requests |
protected ServerConfig |
serverConfig
The server configuration read from the XML file. |
protected URIMapper |
uriMapper
The URI mapper that will tell us what to resolve |
Constructor Summary | |
---|---|
XRIServlet()
|
Method Summary | |
---|---|
static boolean |
checkSigned(javax.servlet.http.HttpServletRequest request)
This method can check whether the client requests SAML trusted resolution. |
void |
destroy()
|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Service an incoming request. |
void |
init()
|
void |
init(ServerConfig serverConfig)
Initializes the servlet based on a ServerConfig |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, 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 org.apache.commons.logging.Log log
protected ServerConfig serverConfig
protected URIMapper uriMapper
protected Server server
protected Plugin plugin
Constructor Detail |
---|
public XRIServlet()
Method Detail |
---|
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void init(ServerConfig serverConfig)
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
java.io.IOException
public static boolean checkSigned(javax.servlet.http.HttpServletRequest request)
request
- The incoming HTTP request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |