|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sr.server.http.HttpCallerContext
public class HttpCallerContext
This class is implemented as an adaptor class for http servlet requests.
Constructor Summary | |
---|---|
HttpCallerContext(javax.servlet.http.HttpServletRequest request,
HttpClientSession session)
|
Method Summary | |
---|---|
java.lang.String |
getProtocol()
Returns protocol name |
java.lang.String |
getRemoteAddr()
Returns the Internet Protocol (IP) address of the client or last proxy that sent the request. |
java.lang.String |
getRemoteHost()
Returns the fully qualified name of the client or the last proxy that sent the request. |
int |
getRemotePort()
Returns the Internet Protocol (IP) source port of the client or last proxy that sent the request. |
java.lang.String |
getRemoteUser()
Gives authenticated client user information |
IClientSessionInfo<?> |
getSession()
Gives client session information if there is any |
javax.servlet.http.HttpServletRequest |
getWrappedRequest()
Gives the protocol specific request information |
java.lang.Class<javax.servlet.http.HttpServletRequest> |
getWrappedType()
Type information of wrapped session |
boolean |
isProtocolSecure()
Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS |
boolean |
isUserInRole(java.lang.String role)
Checks if the authenticated client has the given role |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpCallerContext(javax.servlet.http.HttpServletRequest request, HttpClientSession session)
Method Detail |
---|
public java.lang.String getRemoteUser()
ICallerContextInfo
getRemoteUser
in interface ICallerContextInfo<javax.servlet.http.HttpServletRequest>
public IClientSessionInfo<?> getSession()
ICallerContextInfo
getSession
in interface ICallerContextInfo<javax.servlet.http.HttpServletRequest>
public javax.servlet.http.HttpServletRequest getWrappedRequest()
ICallerContextInfo
getWrappedRequest
in interface ICallerContextInfo<javax.servlet.http.HttpServletRequest>
public java.lang.Class<javax.servlet.http.HttpServletRequest> getWrappedType()
ICallerContextInfo
getWrappedType
in interface ICallerContextInfo<javax.servlet.http.HttpServletRequest>
public boolean isUserInRole(java.lang.String role)
ICallerContextInfo
isUserInRole
in interface ICallerContextInfo<javax.servlet.http.HttpServletRequest>
role
- role name
public java.lang.String getProtocol()
ICallerContextInfo
getProtocol
in interface ICallerContextInfo<javax.servlet.http.HttpServletRequest>
public java.lang.String getRemoteAddr()
ICallerContextInfo
getRemoteAddr
in interface ICallerContextInfo<javax.servlet.http.HttpServletRequest>
public java.lang.String getRemoteHost()
ICallerContextInfo
getRemoteHost
in interface ICallerContextInfo<javax.servlet.http.HttpServletRequest>
public int getRemotePort()
ICallerContextInfo
getRemotePort
in interface ICallerContextInfo<javax.servlet.http.HttpServletRequest>
public boolean isProtocolSecure()
ICallerContextInfo
isProtocolSecure
in interface ICallerContextInfo<javax.servlet.http.HttpServletRequest>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |