gov.nih.nci.cagrid.wsenum.utils
Class EnumerationResponseHelper

java.lang.Object
  extended by gov.nih.nci.cagrid.wsenum.utils.EnumerationResponseHelper

public class EnumerationResponseHelper
extends java.lang.Object

EnumerationResponseHelper A collection of methods to simplify use of the WS-Enumeration client side tools, as well as create Iterations from CaGridEnumeration service responses to create enumerations

Version:
$Id: EnumerationResponseHelper.java,v 1.2 2007/12/17 18:51:43 dervin Exp $
Author:
David Ervin

Constructor Summary
EnumerationResponseHelper()
           
 
Method Summary
static org.globus.ws.enumeration.ClientEnumIterator createClientIterator(EnumerationResponseContainer container)
          Creates a client enumeration iterator to iterate over a remove enumeration resource
static org.globus.ws.enumeration.ClientEnumIterator createClientIterator(EnumerationResponseContainer container, java.io.InputStream wsddInputStream)
          Creates a client enumeration iterator to iterate over a remove enumeration resource
static org.globus.ws.enumeration.ClientEnumIterator createClientIterator(EnumerationResponseContainer container, java.io.InputStream wsddInputStream, boolean disableClientAuth)
          Creates a client enumeration iterator to iterate over a remove enumeration resource
static org.xmlsoap.schemas.ws._2004._09.enumeration.DataSource createDataSource(org.apache.axis.message.addressing.EndpointReferenceType epr)
          Creates a DataSource implementation which connects to a remote WS-Enumeration implementation
static org.xmlsoap.schemas.ws._2004._09.enumeration.DataSource createDataSource(org.apache.axis.message.addressing.EndpointReferenceType epr, java.io.InputStream wsddInputStream)
          Creates a DataSource implementation which connects to a remote WS-Enumeration implementation
static org.xmlsoap.schemas.ws._2004._09.enumeration.DataSource createDataSource(org.apache.axis.message.addressing.EndpointReferenceType epr, java.io.InputStream wsddInputStream, boolean disableClientAuth)
          Creates a DataSoure implementation which connects to a remote WS-Enumeration implementation, and optionally disables hostname authorization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationResponseHelper

public EnumerationResponseHelper()
Method Detail

createClientIterator

public static org.globus.ws.enumeration.ClientEnumIterator createClientIterator(EnumerationResponseContainer container)
                                                                         throws java.rmi.RemoteException
Creates a client enumeration iterator to iterate over a remove enumeration resource

Parameters:
container - The enumeration response container
Returns:
The client side iterator
Throws:
java.rmi.RemoteException

createClientIterator

public static org.globus.ws.enumeration.ClientEnumIterator createClientIterator(EnumerationResponseContainer container,
                                                                                java.io.InputStream wsddInputStream)
                                                                         throws java.rmi.RemoteException
Creates a client enumeration iterator to iterate over a remove enumeration resource

Parameters:
container - The enumeration response container
wsddInputStream - The WSDD configuration stream for the service. May be null
Returns:
The client side iterator
Throws:
java.rmi.RemoteException

createClientIterator

public static org.globus.ws.enumeration.ClientEnumIterator createClientIterator(EnumerationResponseContainer container,
                                                                                java.io.InputStream wsddInputStream,
                                                                                boolean disableClientAuth)
                                                                         throws java.rmi.RemoteException
Creates a client enumeration iterator to iterate over a remove enumeration resource

Parameters:
container - The enumeration response container
wsddInputStream - The WSDD configuration stream for the service. May be null
disableClientAuth - By default, Globus performs hostname authorization. Setting this flag to true will disable that behavior on the client side. If you see an exception similar to this: org.globus.common.ChainedIOException: Authentication failed [Caused by: Operation unauthorized (Mechanism level: Authorization failed. Expected "/CN=host/foo.host.name" target but received "/O=ABC/OU=LOA1/OU=Services/CN=host/testinghost")] you may want to try setting this flag to 'true'.
Returns:
The client side iterator
Throws:
java.rmi.RemoteException

createDataSource

public static org.xmlsoap.schemas.ws._2004._09.enumeration.DataSource createDataSource(org.apache.axis.message.addressing.EndpointReferenceType epr)
                                                                                throws java.rmi.RemoteException
Creates a DataSource implementation which connects to a remote WS-Enumeration implementation

Parameters:
epr - The endpoint of the remote enumeration
Returns:
The data source
Throws:
java.rmi.RemoteException

createDataSource

public static org.xmlsoap.schemas.ws._2004._09.enumeration.DataSource createDataSource(org.apache.axis.message.addressing.EndpointReferenceType epr,
                                                                                       java.io.InputStream wsddInputStream)
                                                                                throws java.rmi.RemoteException
Creates a DataSource implementation which connects to a remote WS-Enumeration implementation

Parameters:
epr - The endpoint of the remote enumeration
wsddInputStream - The WSDD configuration stream for the service. May be null
Returns:
The data source
Throws:
java.rmi.RemoteException

createDataSource

public static org.xmlsoap.schemas.ws._2004._09.enumeration.DataSource createDataSource(org.apache.axis.message.addressing.EndpointReferenceType epr,
                                                                                       java.io.InputStream wsddInputStream,
                                                                                       boolean disableClientAuth)
                                                                                throws java.rmi.RemoteException
Creates a DataSoure implementation which connects to a remote WS-Enumeration implementation, and optionally disables hostname authorization

Parameters:
epr - The endpoint of the remote enumeration
wsddInputStream - The WSDD configuration stream for the service. May be null
disableClientAuth - By default, Globus performs hostname authorization. Setting this flag to true will disable that behavior on the client side.
Returns:
The data source
Throws:
java.rmi.RemoteException