|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.ws.soap.client.HTTPSOAPTransport.PostMethodHttpOutTransport
protected class HTTPSOAPTransport.PostMethodHttpOutTransport
Adapts an Apache Commons HTTPClient PostMethod
into an HTTPOutTransport
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.opensaml.ws.transport.http.HTTPTransport |
---|
HTTPTransport.HTTP_VERSION |
Constructor Summary | |
---|---|
HTTPSOAPTransport.PostMethodHttpOutTransport(org.apache.commons.httpclient.methods.PostMethod method)
Constructor. |
Method Summary | |
---|---|
void |
addParameter(String name,
String value)
Sets the given parameter with the given value. This method is not supported for this transport implementation. |
Object |
getAttribute(String name)
Gets a transport-specific attribute. This method is not supported for this transport implementation. |
String |
getCharacterEncoding()
Gets the character encoding of the transport. This method is not supported for this transport implementation. |
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. |
org.opensaml.xml.security.credential.Credential |
getLocalCredential()
Gets the local credential used to authenticate to the peer. This method is not supported for this transport implementation. |
OutputStream |
getOutgoingStream()
Gets the outgoing data stream to the peer. This method is not supported for this transport implementation. |
String |
getParameterValue(String name)
Gets the first value of the named parameter. |
List<String> |
getParameterValues(String name)
Gets the values of the named parameter. |
org.opensaml.xml.security.credential.Credential |
getPeerCredential()
Gets the credential offered by the peer to authenticate itself. This method is not supported for this transport implementation. |
int |
getStatusCode()
Gets the status code of the request. This method is not supported for this transport implementation. |
HTTPTransport.HTTP_VERSION |
getVersion()
Gets the HTTP version used to receive the message. |
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 |
sendRedirect(String location)
Sends an HTTP 3XX redirect message back to the client. This method is not supported for this transport implementation. |
void |
setAttribute(String name,
Object value)
Sets a transport-specific attribute. This method is not supported for this transport implementation. |
void |
setAuthenticated(boolean isAuthenticated)
Sets whether the peer is authenticated. This method is not supported for this transport implementation. |
void |
setCharacterEncoding(String encoding)
Sets the character encoding of the transport. This method is not supported for this transport implementation. |
void |
setConfidential(boolean isConfidential)
Sets whether the transport represents a confidential connection. |
void |
setHeader(String name,
String value)
Sets the given header with the given value. |
void |
setIntegrityProtected(boolean isIntegrityProtected)
Sets whether the transport represents a connection that protects the integrity of transported content. |
void |
setStatusCode(int code)
Sets the status code for this transport. This method is not supported for this transport implementation. |
void |
setVersion(HTTPTransport.HTTP_VERSION version)
Sets the HTTP version to use for outgoing messages. This method is not supported for this transport implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPSOAPTransport.PostMethodHttpOutTransport(org.apache.commons.httpclient.methods.PostMethod method)
method
- post method used to send the requestMethod Detail |
---|
public void sendRedirect(String location)
sendRedirect
in interface HTTPOutTransport
location
- location to redirect the client topublic void setHeader(String name, String value)
setHeader
in interface HTTPOutTransport
name
- header namevalue
- header valuepublic void addParameter(String name, String value)
addParameter
in interface HTTPOutTransport
name
- parameter namevalue
- parameter valuepublic void setStatusCode(int code)
setStatusCode
in interface HTTPOutTransport
code
- status code for this transportpublic void setVersion(HTTPTransport.HTTP_VERSION version)
setVersion
in interface HTTPOutTransport
version
- HTTP version to use for outgoing messagespublic OutputStream getOutgoingStream()
getOutgoingStream
in interface OutTransport
public void setAttribute(String name, Object value)
setAttribute
in interface OutTransport
name
- attribute namevalue
- attribute valuepublic void setCharacterEncoding(String encoding)
setCharacterEncoding
in interface OutTransport
encoding
- character encoding of the transportpublic Object getAttribute(String name)
getAttribute
in interface Transport
name
- name of the attribute
public String getCharacterEncoding()
getCharacterEncoding
in interface Transport
public org.opensaml.xml.security.credential.Credential getLocalCredential()
getLocalCredential
in interface Transport
public org.opensaml.xml.security.credential.Credential getPeerCredential()
getPeerCredential
in interface Transport
public boolean isAuthenticated()
isAuthenticated
in interface Transport
public boolean isConfidential()
isConfidential
in interface Transport
public void setAuthenticated(boolean isAuthenticated)
setAuthenticated
in interface Transport
isAuthenticated
- whether the peer is authenticatedpublic void setConfidential(boolean isConfidential)
setConfidential
in interface Transport
isConfidential
- whether the transport represents a confidential connectionpublic String getHTTPMethod()
getHTTPMethod
in interface HTTPTransport
public String getHeaderValue(String name)
getHeaderValue
in interface HTTPTransport
name
- header name
public String getParameterValue(String name)
getParameterValue
in interface HTTPTransport
name
- parameter name
public List<String> getParameterValues(String name)
getParameterValues
in interface HTTPTransport
name
- parameter name
public int getStatusCode()
getStatusCode
in interface HTTPTransport
public HTTPTransport.HTTP_VERSION getVersion()
getVersion
in interface HTTPTransport
public boolean isIntegrityProtected()
isIntegrityProtected
in interface Transport
public void setIntegrityProtected(boolean isIntegrityProtected)
setIntegrityProtected
in interface Transport
isIntegrityProtected
- 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 |