|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ws4d.java.wsdl.WSDL
public class WSDL
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
void |
addBinding(WSDLBinding binding)
|
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. |
InternetMediaType |
getContentType()
Returns the content type of this resource. |
HashMap |
getDefaultNamespaces()
|
HashMap |
getHeaderFields()
Returns additional header fields for this resource. |
HashMap |
getImports()
|
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. supported)
binding specified. |
DataStructure |
getSupportedPortTypes()
Returns a data structure WSDLPortType instances within this WSDL
with an appropriate (i.e. supported) binding specified. |
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)
|
static WSDL |
parse(java.io.InputStream in,
boolean loadReferencedFiles)
|
static WSDL |
parse(java.io.InputStream in,
URI fromUri,
boolean loadReferencedFiles)
|
static WSDL |
parse(URI fromUri)
|
static WSDL |
parse(URI fromUri,
boolean loadReferencedFiles)
|
static WSDL |
parse(org.xmlpull.v1.XmlPullParser parser)
|
static WSDL |
parse(org.xmlpull.v1.XmlPullParser parser,
boolean loadReferencedFiles)
|
static void |
registerAttributeParserForNamespace(java.lang.String namespace,
CustomAttributeParser parser)
|
void |
serialize(java.io.OutputStream out)
|
void |
serialize(URI request,
RequestHeader requestHeader,
java.io.InputStream requestBody,
java.io.OutputStream out)
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(org.xmlpull.v1.XmlPullParser parser)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WSDL()
public WSDL(java.lang.String targetNamespace)
targetNamespace - the target namespace of the WSDL
public WSDL(java.lang.String targetNamespace,
java.lang.String name)
targetNamespace - the namespace this WSDL definesname - the name of the WSDL| Method Detail |
|---|
public 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 for
public static WSDL parse(URI fromUri)
throws org.xmlpull.v1.XmlPullParserException,
java.io.IOException
org.xmlpull.v1.XmlPullParserException
java.io.IOException
public static WSDL parse(URI fromUri,
boolean loadReferencedFiles)
throws org.xmlpull.v1.XmlPullParserException,
java.io.IOException
org.xmlpull.v1.XmlPullParserException
java.io.IOException
public static WSDL parse(java.io.InputStream in)
throws org.xmlpull.v1.XmlPullParserException,
java.io.IOException
org.xmlpull.v1.XmlPullParserException
java.io.IOException
public static WSDL parse(java.io.InputStream in,
boolean loadReferencedFiles)
throws org.xmlpull.v1.XmlPullParserException,
java.io.IOException
org.xmlpull.v1.XmlPullParserException
java.io.IOException
public static WSDL parse(java.io.InputStream in,
URI fromUri,
boolean loadReferencedFiles)
throws org.xmlpull.v1.XmlPullParserException,
java.io.IOException
org.xmlpull.v1.XmlPullParserException
java.io.IOException
public static WSDL parse(org.xmlpull.v1.XmlPullParser parser)
throws org.xmlpull.v1.XmlPullParserException,
java.io.IOException
org.xmlpull.v1.XmlPullParserException
java.io.IOException
public static WSDL parse(org.xmlpull.v1.XmlPullParser parser,
boolean loadReferencedFiles)
throws org.xmlpull.v1.XmlPullParserException,
java.io.IOException
org.xmlpull.v1.XmlPullParserException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
public void serialize(URI request,
RequestHeader requestHeader,
java.io.InputStream requestBody,
java.io.OutputStream out)
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 over
java.io.IOException - if an IO failure occurs during serializationpublic InternetMediaType 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()
ResourceThe 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.
size in interface Resourcepublic 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 assumed
nullpublic WSDLPortType getPortType(QName name)
name - the qualified name of the port type to return
nullpublic 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 assumed
nullpublic WSDLMessage getMessage(QName name)
name - the qualified name of the message to return
nullpublic 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 assumed
nullpublic WSDLBinding getBinding(QName name)
name - the qualified name of the binding to return
nullpublic Iterator getBindings()
public Iterator getBindings(QName portType)
portType - the fully qualified name of the port type for which to
find corresponding bindings
public 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 assumed
nullpublic WSDLService getService(QName name)
name - the qualified name of the service to return
nullpublic Iterator getServices()
public Schema getTypes(java.lang.String namespace)
namespace - the target namespace of the Schema instance to return
nullpublic 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 assumed
nullpublic Type getSchemaType(QName name)
name - the qualified name of the schema type to return
nullpublic 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 assumed
nullpublic Element getSchemaElement(QName name)
name - the qualified name of the schema element to return
null
public 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
return
nullpublic 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 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
UnsupportedBindingException
public void serialize(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic HashMap getDefaultNamespaces()
public void storeDefaultNamespaces(org.xmlpull.v1.XmlPullParser parser)
throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserException
public void storeDefaultNamespace(java.lang.String prefix,
java.lang.String nsUri)
public java.lang.String shortDescription()
Resource
shortDescription in interface Resourcepublic long getLastModifiedDate()
Resource
getLastModifiedDate in interface Resource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||