|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.soap.server.UserContext
UserContext
defines the user context for a SOAP service
request. Several attributes are pre-defined, and set and get methods
are provided for those. In addition, the provider may define additional
attributes using getAttribute
and setAttribute
.
Note that the HttpServlet and HttpSession do not really belong here, but they are required by the JavaProvider.
Constructor Summary | |
UserContext()
Default constructor. |
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the attribute with the given name, or null if there is no attribute by that name. |
java.util.Enumeration |
getAttributeNames()
Returns an Enumeration containing the attribute names available within this SOAP context. |
java.lang.Object |
getCertificate()
Returns the user certificate. |
javax.servlet.http.HttpServlet |
getHttpServlet()
Returns the HTTP servlet. |
javax.servlet.http.HttpSession |
getHttpSession()
Returns the HTTP session. |
java.lang.String |
getRemoteAddress()
Returns the Internet Protocol (IP) address of the client that sent the request. |
java.lang.String |
getRemoteHost()
Returns the host name of the client that sent the request. |
java.lang.String |
getRequestURI()
Returns the URI of the request. |
boolean |
getSecureChannel()
Returns an indication whether the channel is secure. |
java.lang.String |
getUsername()
Returns the protocol-specific username. |
void |
removeAttribute(java.lang.String name)
Removes the attribute with the given name from the context. |
void |
setAttribute(java.lang.String name,
java.lang.Object object)
Binds an object to a given attribute name in this SOAP context. |
void |
setCertificate(java.lang.Object certificate)
Set the user certificate. |
void |
setHttpServlet(javax.servlet.http.HttpServlet servlet)
Set the HTTP servlet. |
void |
setHttpSession(javax.servlet.http.HttpSession session)
Set the HTTP session. |
void |
setRemoteAddress(java.lang.String remoteAddress)
Set the remote IP address of the client |
void |
setRemoteHost(java.lang.String remoteHost)
Set the host name of the client making the SOAP request |
void |
setRequestURI(java.lang.String uri)
Set the URI of the request. |
void |
setSecureChannel(boolean secureChannel)
Set the indicator of whether the channel is secure. |
void |
setUsername(java.lang.String username)
Set the protocol-specific username. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserContext()
Method Detail |
public java.lang.String getRequestURI()
public void setRequestURI(java.lang.String uri)
uri
- Request URIpublic java.lang.Object getCertificate()
null
if this attribute is not set.public void setCertificate(java.lang.Object certificate)
certificate
- The user certificate for the user making the SOAP request.public javax.servlet.http.HttpServlet getHttpServlet()
HttpServlet
that is processing the SOAP request, or
null
if the servlet attribute is not set.public void setHttpServlet(javax.servlet.http.HttpServlet servlet)
servlet
- The HttpServlet
that is processing the SOAP request.public javax.servlet.http.HttpSession getHttpSession()
HttpSession
for the SOAP request, or
null
if the session attribute is not set.public void setHttpSession(javax.servlet.http.HttpSession session)
servlet
- The HttpSession
for the SOAP request.public java.lang.String getRemoteAddress()
public void setRemoteAddress(java.lang.String remoteAddress)
remoteAddress
- The IP address of the client making the SOAP request.public java.lang.String getRemoteHost()
public void setRemoteHost(java.lang.String remoteHost)
remoteHost
- The host name of the client making the SOAP request.public boolean getSecureChannel()
true
if the channel is secure,
else false
.public void setSecureChannel(boolean secureChannel)
secureChannel
- true
if the channel is secure, else false
.public java.lang.String getUsername()
null
if this attribute is not set.public void setUsername(java.lang.String username)
username
- The protocol-specific username for the SOAP request.public java.lang.Object getAttribute(java.lang.String name)
name
- A String
specifying the name of the attribute.null
if no attribute exists matching the given name.getAttributeNames()
public java.util.Enumeration getAttributeNames()
Enumeration
of attribute names.getAttribute(java.lang.String)
public void setAttribute(java.lang.String name, java.lang.Object object)
name
- A non-null String
specifying the name of the attribute.object
- An non-null Object
representing the attribute to be bound.public void removeAttribute(java.lang.String name)
name
- A String
specifying the name of the attribute to be
removed.object
- An Object
representing the attribute to be bound.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |