|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A WSIFService is a factory via which WSIFPorts are retrieved. This follows the J2EE design pattern of accessing resources (WSIFPorts, in this case) via a factory which is retrieved from the context in which the application is running. When WSIF is hosted in an app server, the container can manage service invocation details by providing a factory implementation that follows the app servers wishes and guidelines. The factory is assumed to be for a specific portType; i.e., the factory knows how to factor WSIFPorts for a given portType. As such the getPort() methods do not take portType arguments.
| Method Summary | |
java.util.Iterator |
getAvailablePortNames()
Get the names of the available ports |
WSIFMessage |
getContext()
Gets the context information for this WSIFService. |
javax.wsdl.Definition |
getDefinition()
Get the Definition object representing the wsdl document |
WSIFPort |
getPort()
Returns an appropriate WSIFPort for the portType that this factory supports. |
WSIFPort |
getPort(java.lang.String portName)
Returns a WSIFPort for the indicated port. |
java.lang.Object |
getStub(java.lang.Class iface)
Get the dynamic proxy that will implement an interface for a port This method will attempt to use the preferred port if set otherwise it will use the first available port. |
java.lang.Object |
getStub(java.lang.String portName,
java.lang.Class iface)
Get the dynamic proxy that will implement an interface for a port |
void |
mapPackage(java.lang.String namespace,
java.lang.String packageName)
Add an association between a namespace URI and and a Java package. |
void |
mapType(javax.xml.namespace.QName xmlType,
java.lang.Class javaType)
Inform WSIF that a particular XML type (referred to in the WSDL) actually maps to a particular Java class. |
void |
setContext(WSIFMessage context)
Sets the context information for this WSIFService. |
void |
setPreferredPort(java.lang.String portName)
Set the preferred port |
| Method Detail |
public WSIFPort getPort()
throws WSIFException
WSIFException - if a suitable port cannot be located.
public WSIFPort getPort(java.lang.String portName)
throws WSIFException
portName - name of the port (local part of the name).
WSIFException - if the named port is not known or available
public java.lang.Object getStub(java.lang.String portName,
java.lang.Class iface)
throws WSIFException
portName - the name of the portiface - the interface that the stub will implement
WSIFException - if something goes wrong
public java.lang.Object getStub(java.lang.Class iface)
throws WSIFException
WSIFException - if something goes wrong
public void mapType(javax.xml.namespace.QName xmlType,
java.lang.Class javaType)
throws WSIFException
xmlType - the fully qualified XML type namejavaType - the java class that this type maps to
WSIFException - if something goes wrong
public void mapPackage(java.lang.String namespace,
java.lang.String packageName)
throws WSIFException
namespace - The namespace URIpackageName - The full package name
WSIFException - if something goes wrong
public void setPreferredPort(java.lang.String portName)
throws WSIFException
portName - The name of the port to use
WSIFException - if something goes wrong
public java.util.Iterator getAvailablePortNames()
throws WSIFException
WSIFException - if something goes wrongpublic javax.wsdl.Definition getDefinition()
public WSIFMessage getContext()
throws WSIFException
WSIFExceptionpublic void setContext(WSIFMessage context)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||