fedora.client
Class APIMStubFactory

java.lang.Object
  extended by 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

Field Summary
static int SOCKET_TIMEOUT_SECONDS
           
 
Constructor Summary
APIMStubFactory()
           
 
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
 

Field Detail

SOCKET_TIMEOUT_SECONDS

public static int SOCKET_TIMEOUT_SECONDS
Constructor Detail

APIMStubFactory

public APIMStubFactory()
Method Detail

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