|
WebObjects 5.4.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webobjects.appserver.WOWSDDRegistrar
public class WOWSDDRegistrar
Registers WSDD types and services with WebObjects application.
| Nested Class Summary | |
|---|---|
static interface |
WOWSDDRegistrar.Delegate
|
| Constructor Summary | |
|---|---|
protected |
WOWSDDRegistrar()
|
| Method Summary | |
|---|---|
protected String |
createAllowedMethodsString(String[] allowedMethods)
Create a String of all the allowed methods separated by , |
protected String |
createServiceString(String webServiceName,
Class webServiceClass,
String[] allowedMethods,
boolean isRPC,
boolean isD2WS)
|
protected List |
getDeclaredMethodsForClass(Class webServiceClass)
Returns the list of declared method accessible on the the target web service class. |
static WOWSDDRegistrar |
getInstance()
Returns the single instance of the Registrar |
protected List |
getMethodsForNames(Class webServiceClass,
String[] allowedMethods)
Returns the list of method on the the target web service class. |
protected Collection |
getMethodsTypes(Collection methods)
Returns a collection of class that are parameters or return values of the list of methods |
void |
registerD2WebServiceWithOperations(String webServiceName,
String[] operations)
Used by Direct To WebServices to register operations |
void |
registerFactoriesForClassWithQName(javax.xml.rpc.encoding.SerializerFactory aSerializerFactory,
javax.xml.rpc.encoding.DeserializerFactory aDeserializerFactory,
Class aClass,
QName aQName)
Register aSerializerFactory for serializing objects of class aClass and aDeserializerFactory for deserializing DOM elements with QName
aQName. |
void |
registerTypeMapping(javax.xml.rpc.encoding.SerializerFactory aSerializerFactory,
javax.xml.rpc.encoding.DeserializerFactory aDeserializerFactory,
Class aClass,
QName aQName)
Register the WSDDTypeMapping for WSDD generation. |
void |
registerWebService(Class webServiceClass,
boolean isRPC)
Expose all methods declared on webServiceClass as operations on a web service whose name is the non-qualified class name of webServiceClass. |
void |
registerWebService(String webServiceName,
Class webServiceClass,
boolean isRPC)
Expose all methods declared on webServiceClass as operations on a web service whose name is webServiceName. |
void |
registerWebService(String webServiceName,
Class webServiceClass,
String[] allowedMethods,
boolean isRPC)
Expose methods listed in allowedMethods declared on webServiceClass as operations on a web service whose name is webServiceName. |
void |
registerXSLTForServiceAndOperation(URL aURL,
String serviceName,
String operationName)
Register an XSLT transformation for serviceName and operationName. |
protected String |
serviceStringCloseTag()
|
protected String |
serviceStringD2WRPCProvider()
|
protected String |
serviceStringDeclaration()
|
protected String |
serviceStringMsgProvider()
|
protected String |
serviceStringOpenTag(String name,
boolean isRPC)
|
protected String |
serviceStringParameterAllowedMethods(String[] allowedMethods)
|
protected String |
serviceStringParameterClassName(String name)
|
protected String |
serviceStringParameterNamespace()
|
protected String |
serviceStringParameterScope()
|
protected String |
serviceStringRPCProvider()
|
protected String |
serviceStringTypeMappings(org.apache.axis.deployment.wsdd.WSDDTypeMapping typeMapping)
|
static void |
setDelegate(WOWSDDRegistrar.Delegate aDelegate)
Set the class delegate. |
void |
setSecurityDelegate(Object aDelegate)
Register aDelegate as the security delegate for Axis. |
String |
toString()
|
void |
unregisterWebService(Class webServiceClass)
Deregister the web service registered for webServiceClass. |
void |
unregisterWebService(String webServiceName)
Deregister the web service registered with the name webServiceName. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected WOWSDDRegistrar()
| Method Detail |
|---|
public static WOWSDDRegistrar getInstance()
public static void setDelegate(WOWSDDRegistrar.Delegate aDelegate)
aDelegate -
public void registerWebService(Class webServiceClass,
boolean isRPC)
webServiceClass as operations on a web service whose name is the non-qualified class name of webServiceClass.
webServiceClass - Class to be exposed as a web serviceisRPC - boolean true if the service is RPC based false if document
IllegalArgumentException - if webServiceClass is null, or if isRPC is false the number of declared methods on webServiceClass is not 1
public void registerWebService(String webServiceName,
Class webServiceClass,
boolean isRPC)
webServiceClass as operations on a web service whose name is webServiceName.
webServiceName - the name under which the class should be exposedwebServiceClass - Class to be exposed as a web serviceisRPC - boolean true if the service is RPC based false if document
IllegalArgumentException - if webServiceName or webServiceClass are null, or if isRPC is false and the number of declared methods on
webServiceClass is not 1
public void registerWebService(String webServiceName,
Class webServiceClass,
String[] allowedMethods,
boolean isRPC)
allowedMethods declared on webServiceClass as operations on a web service whose name is webServiceName.
webServiceName - the name under which the class should be exposedwebServiceClass - Class to be exposed as a web serviceallowedMethods - array of Strings containing the names of methods to be exposedisRPC - boolean true if the service is RPC based false if document
IllegalArgumentException - if webServiceName or webServiceClass are null, or if isRPC is false and either allowedMethods is
null or allowedMethods.length != 1
public void registerD2WebServiceWithOperations(String webServiceName,
String[] operations)
webServiceName - name of webservicesoperations - String array of operations to be registeredpublic void unregisterWebService(Class webServiceClass)
webServiceClass. This method assumes that webServiceClass will be exposed under it's classname.
webServiceClass - the Class to be deregistered
IllegalArgumentException - if webServiceClass is nullpublic void unregisterWebService(String webServiceName)
webServiceName.
webServiceName - the name of the service to be deregistered
IllegalArgumentException - if webServiceName is nullprotected List getDeclaredMethodsForClass(Class webServiceClass)
webServiceClass - target web service class
protected List getMethodsForNames(Class webServiceClass,
String[] allowedMethods)
webServiceClass - target web service classallowedMethods - names of allowed methods
protected Collection getMethodsTypes(Collection methods)
methods - target list of methods
protected String createServiceString(String webServiceName,
Class webServiceClass,
String[] allowedMethods,
boolean isRPC,
boolean isD2WS)
webServiceName - webServiceClass - allowedMethods - isRPC - isD2WS -
protected String serviceStringDeclaration()
protected String serviceStringOpenTag(String name,
boolean isRPC)
name - isRPC -
protected String serviceStringRPCProvider()
protected String serviceStringMsgProvider()
protected String serviceStringD2WRPCProvider()
protected String serviceStringParameterScope()
protected String serviceStringParameterClassName(String name)
name -
protected String serviceStringParameterAllowedMethods(String[] allowedMethods)
allowedMethods -
protected String serviceStringParameterNamespace()
protected String serviceStringTypeMappings(org.apache.axis.deployment.wsdd.WSDDTypeMapping typeMapping)
typeMapping -
protected String serviceStringCloseTag()
protected String createAllowedMethodsString(String[] allowedMethods)
allowedMethods -
public void registerFactoriesForClassWithQName(javax.xml.rpc.encoding.SerializerFactory aSerializerFactory,
javax.xml.rpc.encoding.DeserializerFactory aDeserializerFactory,
Class aClass,
QName aQName)
aSerializerFactory for serializing objects of class aClass and aDeserializerFactory for deserializing DOM elements with QName
aQName. Objects serialized by aSerializerFactory will have a QName of aQName. If a aSerializerFactory is null, only
aDeserializerFactory will be registered, and vice versa.
aSerializerFactory - factory for creating serializers for Class aClassaDeserializerFactory - factory for creating deserializers for elements with QName aQNameaClass - Class which aSerializerFactory should be used to serializeaQName - QName defining elements that aDeserializerFactory should be used to deserialize
public void registerTypeMapping(javax.xml.rpc.encoding.SerializerFactory aSerializerFactory,
javax.xml.rpc.encoding.DeserializerFactory aDeserializerFactory,
Class aClass,
QName aQName)
aSerializerFactory - factory for creating serializers for Class aClassaDeserializerFactory - factory for creating deserializers for elements with QName aQNameaClass - Class which aSerializerFactory should be used to serializeaQName - QName defining elements that aDeserializerFactory should be used to deserialize
public void registerXSLTForServiceAndOperation(URL aURL,
String serviceName,
String operationName)
serviceName and operationName. All parameters must be non-null. The contents of the URL will be read at registration.
aURL - URL for a resource containing an XSLTserviceName - the name of the service for which this transformation should be registeredoperationName - the name of the operation for which this transformation should be registeredpublic void setSecurityDelegate(Object aDelegate)
aDelegate as the security delegate for Axis.
aDelegate - any object implementing some subset of the WOSecurityDelegate interfaceWOSecurityDelegatepublic String toString()
toString in class Object
|
Last updated June 2008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||