org.apache.wsif.naming
Class WSIFServiceStubRef
java.lang.Object
|
+--org.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 |
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 filesNS
- The namespace for the service as specified in the wsdlsName
- The name of the service required, as specified in the wsdlptNS
- The namespace of the port type required, as specified in the wsdlptName
- The name of the port type required, as specified in the wsdlportName
- The name of the preferred port to usecls
- The fully qualified name of the interface class for the stub
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.
deep
public java.lang.String deep()
Copyright © 2002, 2002 Apache XML Project. All Rights Reserved.