| Modifier and Type | Field and Description |
|---|---|
static ContentType |
CONTENT_TYPE |
static java.lang.String |
HTTP_HEADER_LAST_MODIFIED |
| Constructor and Description |
|---|
WSDL()
Creates an empty WSDL.
|
WSDL(java.lang.String targetNamespace)
Creates an empty WSDL with the given target namespace.
|
WSDL(java.lang.String targetNamespace,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinding(WSDLBinding binding) |
static void |
addDefaultNamespaceAndPrefix(java.lang.String namespace,
java.lang.String prefix) |
void |
addImport(java.lang.String targetNamespace,
java.lang.String location)
Adds an import information to this WSDL.
|
void |
addLinkedWsdl(WSDL wsdl) |
void |
addMessage(WSDLMessage message) |
void |
addPortType(WSDLPortType portType) |
void |
addService(WSDLService service) |
void |
addTypes(Schema schema) |
static CustomAttributeParser |
getAttributeParserForNamespace(java.lang.String namespace)
Returns the custom attribute parser instance previously registered for the given namespace.
|
WSDLBinding |
getBinding(QName name) |
WSDLBinding |
getBinding(java.lang.String name) |
Iterator |
getBindings()
Returns an iterator over all bindings defined within this WSDL instance.
|
Iterator |
getBindings(QName portType)
Returns an iterator over all bindings for the port type with the given fully qualified name.
|
ContentType |
getContentType()
Returns the content type of this resource.
|
HashMap |
getDefaultNamespaces() |
HashMap |
getHeaderFields()
Returns additional header fields for this resource.
|
HashMap |
getImports() |
java.lang.Object |
getKey() |
long |
getLastModifiedDate()
Returns the last time where this resource was modified as UNIX timestamp.
|
WSDL |
getLinkedWsdl(java.lang.String namespace) |
WSDL |
getLinkedWsdlRecursive(java.lang.String namespace) |
Iterator |
getLinkedWsdls()
Returns an iterator over all
WSDL instances imported by this WSDL instance. |
WSDLMessage |
getMessage(QName name) |
WSDLMessage |
getMessage(java.lang.String name) |
Iterator |
getMessages()
Returns an iterator over all messages defined within this WSDL instance.
|
java.lang.String |
getName() |
WSDLPortType |
getPortType(QName name) |
WSDLPortType |
getPortType(java.lang.String name) |
Iterator |
getPortTypes()
Returns an iterator over all port types defined within this WSDL instance.
|
Element |
getSchemaElement(QName name) |
Element |
getSchemaElement(java.lang.String name) |
Type |
getSchemaType(QName name) |
Type |
getSchemaType(java.lang.String name) |
WSDLService |
getService(QName name) |
WSDLService |
getService(java.lang.String name) |
Iterator |
getServices()
Returns an iterator over all services defined within this WSDL instance.
|
DataStructure |
getSupportedOperations()
Returns a data structure of
WSDLOperation instances, which belong to port types within
this WSDL with an appropriate (i.e. |
DataStructure |
getSupportedPortTypes()
Returns a data structure
WSDLPortType instances within this WSDL with an appropriate
(i.e. |
java.lang.String |
getTargetNamespace() |
Iterator |
getTypes()
Returns an iterator over all
Schema instances (i.e. |
Schema |
getTypes(java.lang.String namespace) |
static WSDL |
parse(java.io.InputStream in,
CredentialInfo credentialInfo,
boolean loadReferencedFiles,
java.lang.String comManId) |
static WSDL |
parse(java.io.InputStream in,
CredentialInfo credentialInfo,
java.lang.String comManId) |
static WSDL |
parse(java.io.InputStream in,
URI fromUri,
CredentialInfo credentialInfo,
boolean loadReferencedFiles,
java.lang.String comManId) |
static WSDL |
parse(URI fromUri,
CredentialInfo credentialInfo,
boolean loadReferencedFiles,
java.lang.String comManId) |
static WSDL |
parse(URI fromUri,
CredentialInfo credentialInfo,
java.lang.String comManId) |
static WSDL |
parse(XmlPullParser parser,
CredentialInfo credentialInfo,
boolean loadReferencedFiles,
java.lang.String comManId) |
static WSDL |
parse(XmlPullParser parser,
CredentialInfo credentialInfo,
java.lang.String comManId) |
static void |
registerAttributeParserForNamespace(java.lang.String namespace,
CustomAttributeParser parser) |
void |
removeTypes(Schema schema) |
void |
serialize(java.io.OutputStream out,
java.lang.String comManId) |
void |
serialize(URI request,
RequestHeader requestHeader,
java.io.InputStream requestBody,
java.io.OutputStream out,
CredentialInfo credentialInfo,
java.lang.String comManId)
Serializes this resource to the given output stream
out. |
void |
setName(java.lang.String name) |
void |
setTargetNamespace(java.lang.String targetNamespace) |
java.lang.String |
shortDescription()
A short string representation of this resource.
|
long |
size()
The size of the resource.
|
void |
storeDefaultNamespace(java.lang.String prefix,
java.lang.String nsUri) |
void |
storeDefaultNamespaces(XmlPullParser parser) |
java.lang.String |
toString() |
protected void |
updateLastModified() |
public static final java.lang.String HTTP_HEADER_LAST_MODIFIED
public static final ContentType CONTENT_TYPE
public WSDL()
public WSDL(java.lang.String targetNamespace)
targetNamespace - the target namespace of the WSDLpublic WSDL(java.lang.String targetNamespace,
java.lang.String name)
targetNamespace - the namespace this WSDL definesname - the name of the WSDLpublic static void registerAttributeParserForNamespace(java.lang.String namespace,
CustomAttributeParser parser)
public static CustomAttributeParser getAttributeParserForNamespace(java.lang.String namespace)
StringAttributeParser.INSTANCE).namespace - the namespace to return a custom attribute parser forpublic static WSDL parse(URI fromUri, CredentialInfo credentialInfo, java.lang.String comManId) throws XmlPullParserException, java.io.IOException
XmlPullParserExceptionjava.io.IOExceptionpublic static WSDL parse(URI fromUri, CredentialInfo credentialInfo, boolean loadReferencedFiles, java.lang.String comManId) throws XmlPullParserException, java.io.IOException
XmlPullParserExceptionjava.io.IOExceptionpublic static WSDL parse(java.io.InputStream in, CredentialInfo credentialInfo, java.lang.String comManId) throws XmlPullParserException, java.io.IOException
XmlPullParserExceptionjava.io.IOExceptionpublic static WSDL parse(java.io.InputStream in, CredentialInfo credentialInfo, boolean loadReferencedFiles, java.lang.String comManId) throws XmlPullParserException, java.io.IOException
XmlPullParserExceptionjava.io.IOExceptionpublic static WSDL parse(java.io.InputStream in, URI fromUri, CredentialInfo credentialInfo, boolean loadReferencedFiles, java.lang.String comManId) throws XmlPullParserException, java.io.IOException
XmlPullParserExceptionjava.io.IOExceptionpublic static WSDL parse(XmlPullParser parser, CredentialInfo credentialInfo, java.lang.String comManId) throws XmlPullParserException, java.io.IOException
XmlPullParserExceptionjava.io.IOExceptionpublic static WSDL parse(XmlPullParser parser, CredentialInfo credentialInfo, boolean loadReferencedFiles, java.lang.String comManId) throws XmlPullParserException, java.io.IOException
XmlPullParserExceptionjava.io.IOExceptionpublic static void addDefaultNamespaceAndPrefix(java.lang.String namespace,
java.lang.String prefix)
protected void updateLastModified()
public java.lang.String toString()
toString in class java.lang.Objectpublic void serialize(URI request, RequestHeader requestHeader, java.io.InputStream requestBody, java.io.OutputStream out, CredentialInfo credentialInfo, java.lang.String comManId) throws java.io.IOException
Resourceout.serialize in interface Resourcerequest - the request URIrequestHeader - the header of the requestrequestBody - makes the content of the request body availableout - the outputs stream to serialize this resource overjava.io.IOException - if an IO failure occurs during serializationpublic ContentType getContentType()
Resource
If it is not possible to determinate the content type of the resource, the Resource.getContentType() method should return at least the application/octet-stream content type.
getContentType in interface Resourcepublic HashMap getHeaderFields()
Resource
The additional header fields allow to add header fields to the response which will be created to send this resource.
NOTICE: The map must contain a String, String
mapping.
getHeaderFields in interface Resourcepublic long size()
Resource
If it is not possible to determinate the size of the resource. The implementation should
return -1. This will allow to send the resource as chunked content.
public DataStructure getSupportedOperations()
WSDLOperation instances, which belong to port types within
this WSDL with an appropriate (i.e. supported) binding specified.public DataStructure getSupportedPortTypes()
WSDLPortType instances within this WSDL with an appropriate
(i.e. supported) binding specified.public java.lang.String getName()
public void setName(java.lang.String name)
name - the name to setpublic java.lang.String getTargetNamespace()
public void setTargetNamespace(java.lang.String targetNamespace)
targetNamespace - the targetNamespace to setpublic HashMap getImports()
copy of the imports declared on this WSDL instancepublic WSDLPortType getPortType(java.lang.String name)
name - the local name of the port type to return; a namespace equal to this WSDL's target namespace is assumednullpublic WSDLPortType getPortType(QName name)
name - the qualified name of the port type to returnnullpublic Iterator getPortTypes()
public WSDLMessage getMessage(java.lang.String name)
name - the local name of the message to return; a namespace equal to this WSDL's target namespace is assumednullpublic WSDLMessage getMessage(QName name)
name - the qualified name of the message to returnnullpublic Iterator getMessages()
public WSDLBinding getBinding(java.lang.String name)
name - the local name of the binding to return; a namespace equal to this WSDL's target namespace is assumednullpublic WSDLBinding getBinding(QName name)
name - the qualified name of the binding to returnnullpublic Iterator getBindings()
public Iterator getBindings(QName portType)
portType - the fully qualified name of the port type for which to find corresponding bindingspublic WSDLService getService(java.lang.String name)
name - the local name of the service to return; a namespace equal to this WSDL's target namespace is assumednullpublic WSDLService getService(QName name)
name - the qualified name of the service to returnnullpublic Iterator getServices()
public Schema getTypes(java.lang.String namespace)
namespace - the target namespace of the Schema instance to returnnullpublic Iterator getTypes()
Schema instances (i.e. XML schema definitions)
referenced by this WSDL instance.public Type getSchemaType(java.lang.String name)
name - the local name of the schema type to return; a namespace equal to this WSDL's target namespace is
assumednullpublic Type getSchemaType(QName name)
name - the qualified name of the schema type to returnnullpublic Element getSchemaElement(java.lang.String name)
name - the local name of the schema element to return; a namespace equal to this WSDL's target namespace is
assumednullpublic Element getSchemaElement(QName name)
name - the qualified name of the schema element to returnnullpublic void addImport(java.lang.String targetNamespace,
java.lang.String location)
targetNamespace - the target namespace of the imported WSDLlocation - the locationpublic WSDL getLinkedWsdlRecursive(java.lang.String namespace)
namespace - the target namespace of the imported WSDL instance to returnnullpublic WSDL getLinkedWsdl(java.lang.String namespace)
namespace - the target namespace of the imported WSDL instance to return nullpublic Iterator getLinkedWsdls()
WSDL instances imported by this WSDL instance.public void addLinkedWsdl(WSDL wsdl)
public void removeTypes(Schema schema)
public void addTypes(Schema schema)
public void addMessage(WSDLMessage message)
public void addPortType(WSDLPortType portType)
public void addBinding(WSDLBinding binding)
public void addService(WSDLService service) throws UnsupportedBindingException
UnsupportedBindingExceptionpublic void serialize(java.io.OutputStream out,
java.lang.String comManId)
throws java.io.IOException
java.io.IOExceptionpublic HashMap getDefaultNamespaces()
public void storeDefaultNamespaces(XmlPullParser parser) throws XmlPullParserException
XmlPullParserExceptionpublic void storeDefaultNamespace(java.lang.String prefix,
java.lang.String nsUri)
public java.lang.String shortDescription()
ResourceshortDescription in interface Resourcepublic long getLastModifiedDate()
ResourcegetLastModifiedDate in interface Resource