fedora.client
Class APIMStubFactory
java.lang.Object
fedora.client.APIMStubFactory
public abstract class APIMStubFactory
- extends java.lang.Object
Title: APIMStubFactory.java
Description:
- Version:
- $Id: APIMStubFactory.java 5245 2006-11-28 11:35:02Z eddie $
- Author:
- cwilper@cs.cornell.edu
|
Method Summary |
static FedoraAPIM |
getStub(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Method to rewrite the default API-M base URL (specified in the service
locator class FedoraAPIMServiceLocator). |
static FedoraAPIM |
getStubAltPath(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String username,
java.lang.String password)
Method to rewrite the default API-M base URL (specified in the service
locator class FedoraAPIMServiceLocator). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOCKET_TIMEOUT_SECONDS
public static int SOCKET_TIMEOUT_SECONDS
APIMStubFactory
public APIMStubFactory()
getStub
public static FedoraAPIM getStub(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
throws java.net.MalformedURLException,
javax.xml.rpc.ServiceException
- Method to rewrite the default API-M base URL (specified in the service
locator class FedoraAPIMServiceLocator). In this case we allow the protocol,
host, and port parts of the service URL to be replaced. A SOAP stub
will be returned with the desired service endpoint URL.
- Parameters:
protocol - host - port - username - password -
- Returns:
- FedoraAPIM SOAP stub
- Throws:
java.net.MalformedURLException
javax.xml.rpc.ServiceException
getStubAltPath
public static FedoraAPIM getStubAltPath(java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String username,
java.lang.String password)
throws java.net.MalformedURLException,
javax.xml.rpc.ServiceException
- Method to rewrite the default API-M base URL (specified in the service
locator class FedoraAPIMServiceLocator). In this case we allow the protocol,
host, port, and PATH parts of the service URL to be replaced. A SOAP stub
will be returned with the desired service endpoint URL.
- Parameters:
protocol - host - port - path - username - password -
- Returns:
- FedoraAPIM SOAP stub
- Throws:
java.net.MalformedURLException
javax.xml.rpc.ServiceException