public class JavaServiceDesc extends Object implements ServiceDesc
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
JavaServiceDesc()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addOperationDesc(OperationDesc operation) |
List |
getAllowedMethods() |
String |
getDefaultNamespace() |
List |
getDisallowedMethods() |
String |
getDocumentation()
get the documentation for the service
|
String |
getEndpointURL() |
Class |
getImplClass() |
String |
getName()
the name of the service
|
OperationDesc |
getOperationByElementQName(QName qname)
Map an XML QName to an operation.
|
OperationDesc |
getOperationByName(String methodName)
Return an operation matching the given method name.
|
ArrayList |
getOperations()
get all the operations as a list of OperationDescs.
|
OperationDesc[] |
getOperationsByName(String methodName)
get all overloaded operations by name
|
OperationDesc[] |
getOperationsByQName(QName qname)
Return all operations which match this QName (i.e. get all the
overloads)
|
Object |
getProperty(String name) |
ArrayList |
getStopClasses() |
Style |
getStyle()
What kind of service is this?
|
TypeMapping |
getTypeMapping() |
TypeMappingRegistry |
getTypeMappingRegistry() |
Use |
getUse()
What kind of use is this?
|
String |
getWSDLFile()
the wsdl file of the service.
|
boolean |
isInitialized() |
boolean |
isWrapped()
Determine whether or not this is a "wrapped" invocation, i.e. whether
the outermost XML element of the "main" body element represents a
method call, with the immediate children of that element representing
arguments to the method.
|
void |
loadServiceDescByIntrospection()
Fill in a service description by introspecting the implementation
class.
|
void |
loadServiceDescByIntrospection(Class implClass)
Fill in a service description by introspecting the implementation
class.
|
void |
loadServiceDescByIntrospection(Class cls,
TypeMapping tm)
Fill in a service description by introspecting the implementation
class.
|
void |
removeOperationDesc(OperationDesc operation) |
void |
setAllowedMethods(List allowedMethods) |
void |
setDefaultNamespace(String namespace) |
void |
setDisallowedMethods(List disallowedMethods) |
void |
setDocumentation(String documentation)
set the documentation for the service
|
void |
setEndpointURL(String endpointURL) |
void |
setImplClass(Class implClass)
set the implementation class
Warning: You cannot call getInitializedServiceDesc() after setting this
as it uses this to indicate its work has already been done.
|
void |
setName(String name)
the name of the service
|
void |
setNamespaceMappings(List namespaces) |
void |
setProperty(String name,
Object value) |
void |
setStopClasses(ArrayList stopClasses) |
void |
setStyle(Style style) |
void |
setTypeMapping(TypeMapping tm) |
void |
setTypeMappingRegistry(TypeMappingRegistry tmr) |
void |
setUse(Use use) |
void |
setWSDLFile(String wsdlFileName)
set the wsdl file of the service; this causes the named
file to be returned on a ?
|
public Style getStyle()
getStyle
in interface ServiceDesc
public void setStyle(Style style)
setStyle
in interface ServiceDesc
public Use getUse()
getUse
in interface ServiceDesc
public void setUse(Use use)
setUse
in interface ServiceDesc
public boolean isWrapped()
isWrapped
in interface ServiceDesc
public String getWSDLFile()
getWSDLFile
in interface ServiceDesc
public void setWSDLFile(String wsdlFileName)
setWSDLFile
in interface ServiceDesc
wsdlFileName
- filename or null to re-enable introspectionpublic List getAllowedMethods()
getAllowedMethods
in interface ServiceDesc
public void setAllowedMethods(List allowedMethods)
setAllowedMethods
in interface ServiceDesc
public Class getImplClass()
public void setImplClass(Class implClass)
Warning: You cannot call getInitializedServiceDesc() after setting this as it uses this to indicate its work has already been done.
implClass
- IllegalArgumentException
- if the implementation class is already
setpublic TypeMapping getTypeMapping()
getTypeMapping
in interface ServiceDesc
public void setTypeMapping(TypeMapping tm)
setTypeMapping
in interface ServiceDesc
public String getName()
getName
in interface ServiceDesc
public void setName(String name)
setName
in interface ServiceDesc
name
- public String getDocumentation()
getDocumentation
in interface ServiceDesc
public void setDocumentation(String documentation)
setDocumentation
in interface ServiceDesc
public ArrayList getStopClasses()
public void setStopClasses(ArrayList stopClasses)
public List getDisallowedMethods()
getDisallowedMethods
in interface ServiceDesc
public void setDisallowedMethods(List disallowedMethods)
setDisallowedMethods
in interface ServiceDesc
public void removeOperationDesc(OperationDesc operation)
removeOperationDesc
in interface ServiceDesc
public void addOperationDesc(OperationDesc operation)
addOperationDesc
in interface ServiceDesc
public ArrayList getOperations()
getOperations
in interface ServiceDesc
public OperationDesc[] getOperationsByName(String methodName)
getOperationsByName
in interface ServiceDesc
methodName
- public OperationDesc getOperationByName(String methodName)
getOperationByName
in interface ServiceDesc
public OperationDesc getOperationByElementQName(QName qname)
getOperationByElementQName
in interface ServiceDesc
public OperationDesc[] getOperationsByQName(QName qname)
getOperationsByQName
in interface ServiceDesc
public void loadServiceDescByIntrospection()
public void loadServiceDescByIntrospection(Class implClass)
public void loadServiceDescByIntrospection(Class cls, TypeMapping tm)
public void setNamespaceMappings(List namespaces)
setNamespaceMappings
in interface ServiceDesc
public String getDefaultNamespace()
getDefaultNamespace
in interface ServiceDesc
public void setDefaultNamespace(String namespace)
setDefaultNamespace
in interface ServiceDesc
public void setProperty(String name, Object value)
setProperty
in interface ServiceDesc
public Object getProperty(String name)
getProperty
in interface ServiceDesc
public String getEndpointURL()
getEndpointURL
in interface ServiceDesc
public void setEndpointURL(String endpointURL)
setEndpointURL
in interface ServiceDesc
public TypeMappingRegistry getTypeMappingRegistry()
getTypeMappingRegistry
in interface ServiceDesc
public void setTypeMappingRegistry(TypeMappingRegistry tmr)
setTypeMappingRegistry
in interface ServiceDesc
public boolean isInitialized()
isInitialized
in interface ServiceDesc
Copyright © The Apache Software Foundation. All Rights Reserved.