@ManagedData
public interface SDDocument
ServiceDefinition
.
TODO: how does those documents refer to each other?
Modifier and Type | Interface and Description |
---|---|
static interface |
SDDocument.Schema
SDDocument that represents an XML Schema. |
static interface |
SDDocument.WSDL
SDDocument that represents a WSDL. |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getImports()
returns the referenced documents
|
QName |
getRootName()
Gets the root tag name of this document.
|
URL |
getURL()
Gets the system ID of the document where it's taken from.
|
boolean |
isSchema()
Returns true if this document is schema.
|
boolean |
isWSDL()
Returns true if this document is WSDL.
|
void |
writeTo(PortAddressResolver portAddressResolver,
DocumentAddressResolver resolver,
OutputStream os)
Writes the document to the given
OutputStream . |
void |
writeTo(PortAddressResolver portAddressResolver,
DocumentAddressResolver resolver,
javax.xml.stream.XMLStreamWriter out)
Writes the document to the given
XMLStreamWriter . |
@ManagedAttribute QName getRootName()
This can be used to identify a kind of document quickly (such as schema, WSDL, ...)
@ManagedAttribute boolean isWSDL()
@ManagedAttribute boolean isSchema()
@ManagedAttribute URL getURL()
void writeTo(@Nullable PortAddressResolver portAddressResolver, DocumentAddressResolver resolver, OutputStream os) throws IOException
OutputStream
.
Since ServiceDefinition
doesn't know which endpoint address
Adapter
is serving to, (and often it serves multiple URLs
simultaneously), this method takes the PortAddressResolver as a parameter,
so that it can produce the corret address information in the generated WSDL.
portAddressResolver
- An endpoint address resolver that gives endpoint address for a WSDL
port. Can be null.resolver
- Used to resolve relative references among documents.os
- The OutputStream
that receives the generated document.IOException
- if there was a failure reported from the OutputStream
.void writeTo(PortAddressResolver portAddressResolver, DocumentAddressResolver resolver, javax.xml.stream.XMLStreamWriter out) throws javax.xml.stream.XMLStreamException, IOException
XMLStreamWriter
.
The same as writeTo(PortAddressResolver,DocumentAddressResolver,OutputStream)
except
it writes to an XMLStreamWriter
.
The implementation must not call XMLStreamWriter.writeStartDocument()
nor XMLStreamWriter.writeEndDocument()
. Those are the caller's
responsibility.
javax.xml.stream.XMLStreamException
- if the XMLStreamWriter
reports an error.IOException
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.