public class HttpServletRequestAdapter extends Object implements HTTPInTransport
HttpServletRequest
to an HTTPInTransport
.HTTPTransport.HTTP_VERSION
コンストラクタと説明 |
---|
HttpServletRequestAdapter(javax.servlet.http.HttpServletRequest request)
Constructor.
|
修飾子とタイプ | メソッドと説明 |
---|---|
Object |
getAttribute(String name)
Gets a transport-specific attribute.
|
String |
getCharacterEncoding()
Gets the character encoding of the transport.
|
String |
getHeaderValue(String name)
Gets the first value of the header with the given name.
|
String |
getHTTPMethod()
Gets the HTTP method (POST, GET, etc) used.
|
InputStream |
getIncomingStream()
Gets the incoming stream from the peer.
|
Credential |
getLocalCredential()
Gets the local credential used to authenticate to the peer.
|
String |
getParameterValue(String name)
Gets the first value of the named parameter.
|
List<String> |
getParameterValues(String name)
Gets the values of the named parameter.
|
String |
getPeerAddress()
Gets the IP address of the peer.
|
Credential |
getPeerCredential()
Gets the credential offered by the peer to authenticate itself.
|
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. an SSL connection).
|
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.
|
public HttpServletRequestAdapter(javax.servlet.http.HttpServletRequest request)
request
- servlet request to adappublic Object getAttribute(String name)
getAttribute
インタフェース内 Transport
name
- name of the attributepublic String getCharacterEncoding()
getCharacterEncoding
インタフェース内 Transport
public String getHeaderValue(String name)
getHeaderValue
インタフェース内 HTTPTransport
name
- header namepublic String getHTTPMethod()
getHTTPMethod
インタフェース内 HTTPTransport
public InputStream getIncomingStream()
getIncomingStream
インタフェース内 InTransport
public Credential getLocalCredential()
getLocalCredential
インタフェース内 Transport
public String getParameterValue(String name)
getParameterValue
インタフェース内 HTTPTransport
name
- parameter namepublic List<String> getParameterValues(String name)
getParameterValues
インタフェース内 HTTPTransport
name
- parameter namepublic String getPeerAddress()
getPeerAddress
インタフェース内 HTTPInTransport
public Credential getPeerCredential()
getPeerCredential
インタフェース内 Transport
public String getPeerDomainName()
getPeerDomainName
インタフェース内 HTTPInTransport
public int getStatusCode()
getStatusCode
インタフェース内 HTTPTransport
public HTTPTransport.HTTP_VERSION getVersion()
getVersion
インタフェース内 HTTPTransport
public javax.servlet.http.HttpServletRequest getWrappedRequest()
public boolean isAuthenticated()
isAuthenticated
インタフェース内 Transport
public boolean isConfidential()
isConfidential
インタフェース内 Transport
public void setAuthenticated(boolean isAuthenticated)
setAuthenticated
インタフェース内 Transport
isAuthenticated
- whether the peer is authenticatedpublic void setConfidential(boolean isConfidential)
setConfidential
インタフェース内 Transport
isConfidential
- whether the transport represents a confidential connectionpublic boolean isIntegrityProtected()
isIntegrityProtected
インタフェース内 Transport
public void setIntegrityProtected(boolean isIntegrityProtected)
setIntegrityProtected
インタフェース内 Transport
isIntegrityProtected
- whether the transport represents a connection that protects the integrity of
transported contentCopyright © 2012. All Rights Reserved.