fedora.client
Class APIAStubFactory

java.lang.Object
  extended by fedora.client.APIAStubFactory

public abstract class APIAStubFactory
extends java.lang.Object

Title: APIAStubFactory.java

Description:

Version:
$Id: APIAStubFactory.java 5245 2006-11-28 11:35:02Z eddie $
Author:
cwilper@cs.cornell.edu

Field Summary
static int SOCKET_TIMEOUT_SECONDS
           
 
Constructor Summary
APIAStubFactory()
           
 
Method Summary
static FedoraAPIA 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-A base URL (specified in the service locator class FedoraAPIAServiceLocator).
static FedoraAPIA 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-A base URL (specified in the service locator class FedoraAPIAServiceLocator).
 
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

APIAStubFactory

public APIAStubFactory()
Method Detail

getStub

public static FedoraAPIA 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-A base URL (specified in the service locator class FedoraAPIAServiceLocator). 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:
FedoraAPIA SOAP stub
Throws:
java.net.MalformedURLException
javax.xml.rpc.ServiceException

getStubAltPath

public static FedoraAPIA 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-A base URL (specified in the service locator class FedoraAPIAServiceLocator). In this case we allow the path 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:
FedoraAPIA SOAP stub
Throws:
java.net.MalformedURLException
javax.xml.rpc.ServiceException