org.apache.wsif.naming
Class WSIFServiceStubRef

java.lang.Object
  extended byorg.apache.wsif.naming.WSIFServiceStubRef
All Implemented Interfaces:
javax.naming.Referenceable

public class WSIFServiceStubRef
extends java.lang.Object
implements javax.naming.Referenceable

This is a lightweight object which provides a reference for a service stub. When passed to Context.bind(), the getReference() method is invoked and the resulting Reference object is stored in the directory by JNDI.

Author:
Owen Burroughs

Constructor Summary
WSIFServiceStubRef(java.lang.String wsdl, java.lang.String sNS, java.lang.String sName, java.lang.String ptNS, java.lang.String ptName, java.lang.String portName, java.lang.String cls)
          Constructor that takes all necessary information needed to create a WSIFService and stub.
 
Method Summary
 java.lang.String deep()
           
 javax.naming.Reference getReference()
          Method to create and return a Reference object for the service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSIFServiceStubRef

public WSIFServiceStubRef(java.lang.String wsdl,
                          java.lang.String sNS,
                          java.lang.String sName,
                          java.lang.String ptNS,
                          java.lang.String ptName,
                          java.lang.String portName,
                          java.lang.String cls)
Constructor that takes all necessary information needed to create a WSIFService and stub.

Parameters:
wsdl - The location of the wsdl file
sNS - The namespace for the service as specified in the wsdl
sName - The name of the service required, as specified in the wsdl
ptNS - The namespace of the port type required, as specified in the wsdl
ptName - The name of the port type required, as specified in the wsdl
portName - The name of the preferred port to use
cls - The fully qualified name of the interface class for the stub
Method Detail

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Method to create and return a Reference object for the service.

Specified by:
getReference in interface javax.naming.Referenceable
Returns:
A Reference object containing the information required to create a WSIFService and return it, when a lookup is performed on the service using JNDI.
Throws:
javax.naming.NamingException

deep

public java.lang.String deep()


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.