|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.ecs.iam.grid.comms.client.AbstractTransport
public abstract class AbstractTransport
Abstract base class for local and SOAP-based Transport implementations.
| Field Summary | |
|---|---|
protected CertificateTrustValidator |
certificateTrustValidator
|
protected IdentityProvider |
idp
|
protected static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
AbstractTransport()
|
|
AbstractTransport(IdentityProvider idp)
|
|
| Method Summary | |
|---|---|
void |
addInvocationListener(InvocationListener invocationListener)
Add a listener to be notified of all remote operations. |
Document |
fetchWSDL(URL url,
X509Certificate expectedCertificate)
Download and parse a WSDL file. |
CertificateTrustValidator |
getCertificateTrustValidator()
Decides whether to trust a server's certificate. |
IdentityProvider |
getIdentityProvider()
Returns the configured identity provider. |
X509Certificate |
getIssuerCert()
Deprecated. |
KeyStore |
getKeyStore()
Deprecated. |
protected String |
getKeystoreLocation()
Deprecated. |
Key |
getPrivateKey()
Deprecated. |
X509Certificate |
getSubjectCert()
Deprecated. |
org.apache.commons.httpclient.methods.GetMethod |
getURL(URL url,
org.apache.commons.httpclient.Header[] extraHeaders)
Read a remote HTTP resource. |
Object |
invokeService(RemoteBoundMethod method,
String serviceProviderRef,
SOAPHeaderElement[] extraHeaders,
Object[] argValues)
|
InputStream |
openURL(URL url)
Deprecated. |
void |
putURL(URL url,
org.apache.commons.httpclient.methods.RequestEntity entity,
org.apache.commons.httpclient.Header[] extraHeaders)
Upload some data using an HTTP PUT. |
void |
removeInvocationListener(InvocationListener invocationListener)
Remove a listener added with Transport.addInvocationListener(uk.ac.soton.ecs.iam.grid.comms.client.helpers.InvocationListener). |
void |
setCertificateTrustValidator(CertificateTrustValidator certificateTrustValidator)
|
void |
setIdentityProvider(IdentityProvider idp)
Set the configured identity provider. |
protected void |
setUserAgent(String userAgent)
Sets the User-Agent header. |
protected Runnable |
startInvocation(Invocation invocation,
X509Certificate expectedCertificate)
Called before invoking any remote operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.utils.Transport |
|---|
invoke |
| Field Detail |
|---|
protected IdentityProvider idp
protected CertificateTrustValidator certificateTrustValidator
protected static org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public AbstractTransport()
public AbstractTransport(IdentityProvider idp)
| Method Detail |
|---|
public void addInvocationListener(InvocationListener invocationListener)
Transport
addInvocationListener in interface Transportpublic void removeInvocationListener(InvocationListener invocationListener)
TransportTransport.addInvocationListener(uk.ac.soton.ecs.iam.grid.comms.client.helpers.InvocationListener).
removeInvocationListener in interface Transportprotected void setUserAgent(String userAgent)
fetchWSDL(java.net.URL, java.security.cert.X509Certificate) and openURL(java.net.URL).
@Deprecated protected String getKeystoreLocation()
@Deprecated public X509Certificate getSubjectCert()
Transport
getSubjectCert in interface Transport@Deprecated public X509Certificate getIssuerCert()
Transport
getIssuerCert in interface Transport@Deprecated public Key getPrivateKey()
Transport
getPrivateKey in interface Transportpublic void setIdentityProvider(IdentityProvider idp)
Transport
setIdentityProvider in interface Transportpublic IdentityProvider getIdentityProvider()
Transport
getIdentityProvider in interface Transport
public Object invokeService(RemoteBoundMethod method,
String serviceProviderRef,
SOAPHeaderElement[] extraHeaders,
Object[] argValues)
throws RemoteException
RemoteException@Deprecated public KeyStore getKeyStore()
Transport
getKeyStore in interface Transport
public void putURL(URL url,
org.apache.commons.httpclient.methods.RequestEntity entity,
org.apache.commons.httpclient.Header[] extraHeaders)
throws IOException
Transport
putURL in interface Transporturl - the URL of the resource to overwriteentity - the data to be uploadedextraHeaders - extra HTTP headers to include (can be null for the empty list)
IOException
protected Runnable startInvocation(Invocation invocation,
X509Certificate expectedCertificate)
public org.apache.commons.httpclient.methods.GetMethod getURL(URL url,
org.apache.commons.httpclient.Header[] extraHeaders)
throws IOException
TransportHttpMethodBase.getResponseBodyAsStream() to
get a stream with the data. Make sure you call
HttpMethodBase.releaseConnection() when done.
getURL in interface Transporturl - the URL of the resourceextraHeaders - extra HTTP headers to include (can be null for the empty list)
IOException
@Deprecated
public InputStream openURL(URL url)
throws IOException
Transport
openURL in interface Transporturl - the URL of the HTTP or HTTPS resource
IOException
public Document fetchWSDL(URL url,
X509Certificate expectedCertificate)
throws IOException,
SAXException,
javax.wsdl.WSDLException
Transport
fetchWSDL in interface Transporturl - the URL of the WSDL fileexpectedCertificate - for https connections, the SSL certificate of the server (if known)
IOException
SAXException
javax.wsdl.WSDLExceptionpublic void setCertificateTrustValidator(CertificateTrustValidator certificateTrustValidator)
public CertificateTrustValidator getCertificateTrustValidator()
Transport
getCertificateTrustValidator in interface Transport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||