|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aselect.server.request.handler.aselect.authentication.RequestParser
public class RequestParser
The RequestParser
determines the type, origin, and protocol of
any request arriving at the A-Select Server. The A-Select Server
routes the request through its request handlers based on the
classification made by the RequestParser
.
Therefore, this class must be
able to recognize all types of incoming requests
and classify them correctly.
Use the parseRequest()
method to parse an incoming request.
After that, use the getX()
methods to determine
the type of the request.
Field Summary | |
---|---|
static int |
ORIGIN_APPLICATION
Request originated from an application (or the Agent) |
static int |
ORIGIN_ASELECTSERVER
Request originated from another A-Select Server (cross) |
static int |
ORIGIN_AUTHSP
Request originated from an AuthSP (or application acting as an AuthSP) |
static int |
ORIGIN_UNKNOWN
Unknown origin |
static int |
ORIGIN_USER
Request originated directly from the user, or is a redirect from the application to the logout page |
static int |
PROTOCOL_CGI
CGI protocol |
static int |
PROTOCOL_SOAP11
Soap 1.1 Protocol |
static int |
PROTOCOL_SOAP12
Soap 1.2 Protocol |
static int |
PROTOCOL_UNKNOWN
Unknown protocol |
static int |
REQTYPE_API_CALL
API call (server to server communication) |
static int |
REQTYPE_BROWSER
Request via browser (client to server communication) |
static int |
REQTYPE_UNKNOWN
Unknown request type |
Constructor Summary | |
---|---|
RequestParser(javax.servlet.http.HttpServletRequest request)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getRequest()
Retrieve the value of the request parameter. |
int |
getRequestOrigin()
Retrieve the origin of the request (one of ORIGIN_xxx). |
int |
getRequestProtocol()
Retrieve protocol used to send the request (one of PROTOCOL_xxx). |
int |
getRequestType()
Retrieve the request type (one of REQTYPE_xxx). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int REQTYPE_UNKNOWN
public static final int REQTYPE_API_CALL
public static final int REQTYPE_BROWSER
public static final int ORIGIN_UNKNOWN
public static final int ORIGIN_APPLICATION
public static final int ORIGIN_AUTHSP
public static final int ORIGIN_ASELECTSERVER
public static final int ORIGIN_USER
public static final int PROTOCOL_UNKNOWN
public static final int PROTOCOL_CGI
public static final int PROTOCOL_SOAP11
public static final int PROTOCOL_SOAP12
Constructor Detail |
---|
public RequestParser(javax.servlet.http.HttpServletRequest request)
RequestParser
object from a
HttpServletRequest
object.
request
- Method Detail |
---|
public int getRequestType()
public int getRequestOrigin()
public int getRequestProtocol()
public java.lang.String getRequest()
request
parameter. If the
request
parameter is not present, an empty string
(not null
!) is returned.
request
parameter as a
String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |