|
||||||||||
| 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 static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
AbstractTransport()
|
|
| Method Summary | |
|---|---|
Parser |
fetchWSDL(URL url)
Download and parse a WSDL file. |
X509Certificate |
getIssuerCert()
Return the certificate of the issuer of the certificate we use for signing messages. |
char[] |
getKeyPassword()
Get the password for the single private key in the keystore. |
KeyStore |
getKeyStore()
Get the keystore, which contains a single private key. |
protected String |
getKeystoreLocation()
|
Key |
getPrivateKey()
Get the private key from the keystore. |
X509Certificate |
getSubjectCert()
Return the certificate we use for signing messages. |
protected abstract Object |
invoke(RemoteBoundMethod method,
String serviceProviderRef,
SOAPHeaderElement[] extraHeaders,
Object[] argValues)
Subclasses of AbstractTransport implement this method to actually perform an invokation. |
Object |
invokeService(RemoteBoundMethod method,
String serviceProviderRef,
SOAPHeaderElement[] extraHeaders,
Object[] argValues)
Invoke a SOAP method on a remote server. |
static Parser |
loadWSDL(String service)
Loads "service.wsdl" from CLASSPATH. |
InputStream |
openURL(URL url)
Fetch 'url' using the Apache commons httpclient, using our configured keystore. |
protected void |
setUserAgent(String userAgent)
Sets the User-Agent header. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public AbstractTransport()
| Method Detail |
|---|
protected void setUserAgent(String userAgent)
fetchWSDL(java.net.URL) and openURL(java.net.URL).
protected String getKeystoreLocation()
public char[] getKeyPassword()
Transport
getKeyPassword in interface Transportpublic X509Certificate getSubjectCert()
Transport
getSubjectCert in interface Transportpublic X509Certificate getIssuerCert()
Transport
getIssuerCert in interface Transportpublic Key getPrivateKey()
Transport
getPrivateKey in interface Transport
protected abstract Object invoke(RemoteBoundMethod method,
String serviceProviderRef,
SOAPHeaderElement[] extraHeaders,
Object[] argValues)
throws RemoteException
RemoteException
public Object invokeService(RemoteBoundMethod method,
String serviceProviderRef,
SOAPHeaderElement[] extraHeaders,
Object[] argValues)
throws RemoteException
TransportThe clientRef, serviceProviderRef and version fields of the request are filled in automatically.
invokeService in interface Transportmethod - the service to invokeserviceProviderRef - the server-assigned ID for the conversationextraHeaders - additional SOAP headers to add to the messageargValues - the values of the input arguments
RemoteExceptionpublic static Parser loadWSDL(String service)
public KeyStore getKeyStore()
Transport
getKeyStore in interface Transport
public InputStream openURL(URL url)
throws IOException
Transport
openURL in interface Transporturl - the URL of the HTTP or HTTPS resource
IOException
public Parser fetchWSDL(URL url)
throws IOException,
SAXException,
javax.wsdl.WSDLException
Transport
fetchWSDL in interface Transporturl - the URL of the WSDL file
IOException
SAXException
javax.wsdl.WSDLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||