|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.ws.transport.http.HttpServletRequestAdapter
public class HttpServletRequestAdapter
Adapts an HttpServletRequest to an HTTPInTransport.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.opensaml.ws.transport.http.HTTPTransport |
|---|
HTTPTransport.HTTP_VERSION |
| Constructor Summary | |
|---|---|
HttpServletRequestAdapter(javax.servlet.http.HttpServletRequest request)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Gets a transport-specific attribute. |
java.lang.String |
getCharacterEncoding()
Gets the character encoding of the transport. |
java.lang.String |
getHeaderValue(java.lang.String name)
Gets the first value of the header with the given name. |
java.lang.String |
getHTTPMethod()
Gets the HTTP method (POST, GET, etc) used. |
java.io.InputStream |
getIncomingStream()
Gets the incoming stream from the peer. |
org.opensaml.xml.security.credential.Credential |
getLocalCredential()
Gets the local credential used to authenticate to the peer. |
java.lang.String |
getParameterValue(java.lang.String name)
Gets the first value of the named parameter. |
java.util.List<java.lang.String> |
getParameterValues(java.lang.String name)
Gets the values of the named parameter. |
java.lang.String |
getPeerAddress()
Gets the IP address of the peer. |
org.opensaml.xml.security.credential.Credential |
getPeerCredential()
Gets the credential offered by the peer to authenticate itself. |
java.lang.String |
getPeerDomainName()
Gets the domain name of the peer. |
int |
getStatusCode()
Gets the status code of the request. |
HTTPTransport.HTTP_VERSION |
getVersion()
Gets the HTTP version used to receive the message. |
javax.servlet.http.HttpServletRequest |
getWrappedRequest()
Gets the adapted request. |
boolean |
isAuthenticated()
Gets whether the peer is authenticated. |
boolean |
isConfidential()
Gets whether the transport represents a confidential connection (e.g. |
boolean |
isIntegrityProtected()
Gets whether the transport represents a connection that protects the integrity of transported content. |
void |
setAuthenticated(boolean isAuthenticated)
Sets whether the peer is authenticated. |
void |
setConfidential(boolean isConfidential)
Sets whether the transport represents a confidential connection. |
void |
setIntegrityProtected(boolean isIntegrityProtected)
Sets whether the transport represents a connection that protects the integrity of transported content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpServletRequestAdapter(javax.servlet.http.HttpServletRequest request)
request - servlet request to adap| Method Detail |
|---|
public java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface Transportname - name of the attribute
public java.lang.String getCharacterEncoding()
getCharacterEncoding in interface Transportpublic java.lang.String getHeaderValue(java.lang.String name)
getHeaderValue in interface HTTPTransportname - header name
public java.lang.String getHTTPMethod()
getHTTPMethod in interface HTTPTransportpublic java.io.InputStream getIncomingStream()
getIncomingStream in interface InTransportpublic org.opensaml.xml.security.credential.Credential getLocalCredential()
getLocalCredential in interface Transportpublic java.lang.String getParameterValue(java.lang.String name)
getParameterValue in interface HTTPTransportname - parameter name
public java.util.List<java.lang.String> getParameterValues(java.lang.String name)
getParameterValues in interface HTTPTransportname - parameter name
public java.lang.String getPeerAddress()
getPeerAddress in interface HTTPInTransportpublic org.opensaml.xml.security.credential.Credential getPeerCredential()
getPeerCredential in interface Transportpublic java.lang.String getPeerDomainName()
getPeerDomainName in interface HTTPInTransportpublic int getStatusCode()
getStatusCode in interface HTTPTransportpublic HTTPTransport.HTTP_VERSION getVersion()
getVersion in interface HTTPTransportpublic javax.servlet.http.HttpServletRequest getWrappedRequest()
public boolean isAuthenticated()
isAuthenticated in interface Transportpublic boolean isConfidential()
isConfidential in interface Transportpublic void setAuthenticated(boolean isAuthenticated)
setAuthenticated in interface TransportisAuthenticated - whether the peer is authenticatedpublic void setConfidential(boolean isConfidential)
setConfidential in interface TransportisConfidential - whether the transport represents a confidential connectionpublic boolean isIntegrityProtected()
isIntegrityProtected in interface Transportpublic void setIntegrityProtected(boolean isIntegrityProtected)
setIntegrityProtected in interface TransportisIntegrityProtected - whether the transport represents a connection that protects the integrity of
transported content
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||