java.lang.Object
com.sun.xml.ws.api.server.SDDocumentSource
- Direct Known Subclasses:
SDDocumentImpl
SPI that provides the source of
SDDocument
.
This abstract class could be implemented by applications, or one of the
create(java.lang.Class<?>, java.lang.String)
methods can be used.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SDDocumentSource
static SDDocumentSource
CreatesSDDocumentSource
from an URL.static SDDocumentSource
Creates aSDDocumentSource
fromXMLStreamBuffer
.abstract URL
System ID of this document.abstract XMLStreamReader
read()
Returns theXMLStreamReader
that reads the document.abstract XMLStreamReader
read
(XMLInputFactory xif) Returns theXMLStreamReader
that reads the document.
-
Constructor Details
-
SDDocumentSource
protected SDDocumentSource()Default constructor.
-
-
Method Details
-
read
Returns theXMLStreamReader
that reads the document.This method maybe invoked multiple times concurrently.
- Parameters:
xif
- The implementation may choose to use this object when it wants to create a new parser (or it can just ignore this parameter completely.)- Returns:
- The caller is responsible for closing the reader to avoid resource leak.
- Throws:
XMLStreamException
- if something goes wrong while creating a parser.IOException
- if something goes wrong trying to read the document.
-
read
Returns theXMLStreamReader
that reads the document.This method maybe invoked multiple times concurrently.
- Returns:
- The caller is responsible for closing the reader to avoid resource leak.
- Throws:
XMLStreamException
- if something goes wrong while creating a parser.IOException
- if something goes wrong trying to read the document.
-
getSystemId
System ID of this document. -
create
-
create
CreatesSDDocumentSource
from an URL. -
create
Creates aSDDocumentSource
fromXMLStreamBuffer
.
-