java.lang.Object | ||
↳ | org.apache.xerces.xni.parser.XMLInputSource | |
↳ | org.apache.xerces.util.HTTPInputSource |
This class represents an input source for an XML resource
retrievable over HTTP. In addition to the properties
provided by an XMLInputSource
an HTTP input
source also has HTTP request properties and a preference
whether HTTP redirects will be followed. Note that these
properties will only be used if reading this input source
will induce an HTTP connection.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fFollowRedirects | Preference for whether HTTP redirects should be followed. | ||||||||||
fHTTPRequestProperties | HTTP request properties. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.xni.parser.XMLInputSource
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an input source from just the public and system
identifiers, leaving resolution of the entity and opening of
the input stream up to the caller.
| |||||||||||
Constructs an input source from a XMLResourceIdentifier
object, leaving resolution of the entity and opening of
the input stream up to the caller.
| |||||||||||
Constructs an input source from a byte stream.
| |||||||||||
Constructs an input source from a character stream.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the preference whether HTTP redirects should
be followed.
| |||||||||||
Returns an iterator for the request properties this
input source contains.
| |||||||||||
Returns the value of the request property
associated with the given property name.
| |||||||||||
Sets the preference whether HTTP redirects should
be followed.
| |||||||||||
Sets the value of the request property
associated with the given property name.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.xni.parser.XMLInputSource
| |||||||||||
From class
java.lang.Object
|
Preference for whether HTTP redirects should be followed.
Constructs an input source from just the public and system identifiers, leaving resolution of the entity and opening of the input stream up to the caller.
publicId | The public identifier, if known. |
---|---|
systemId | The system identifier. This value should always be set, if possible, and can be relative or absolute. If the system identifier is relative, then the base system identifier should be set. |
baseSystemId | The base system identifier. This value should always be set to the fully expanded URI of the base system identifier, if possible. |
Constructs an input source from a XMLResourceIdentifier object, leaving resolution of the entity and opening of the input stream up to the caller.
resourceIdentifier | the XMLResourceIdentifier containing the information |
---|
Constructs an input source from a byte stream.
publicId | The public identifier, if known. |
---|---|
systemId | The system identifier. This value should always be set, if possible, and can be relative or absolute. If the system identifier is relative, then the base system identifier should be set. |
baseSystemId | The base system identifier. This value should always be set to the fully expanded URI of the base system identifier, if possible. |
byteStream | The byte stream. |
encoding | The encoding of the byte stream, if known. |
Constructs an input source from a character stream.
publicId | The public identifier, if known. |
---|---|
systemId | The system identifier. This value should always be set, if possible, and can be relative or absolute. If the system identifier is relative, then the base system identifier should be set. |
baseSystemId | The base system identifier. This value should always be set to the fully expanded URI of the base system identifier, if possible. |
charStream | The character stream. |
encoding | The original encoding of the byte stream used by the reader, if known. |
Returns the preference whether HTTP redirects should be followed. By default HTTP redirects will be followed.
Returns an iterator for the request properties this
input source contains. Each object returned by the
iterator is an instance of java.util.Map.Entry
where each key and value are a pair of strings corresponding
to the name and value of a request property.
Returns the value of the request property associated with the given property name.
key | the name of the request property |
---|
null
if this property has not
been set
Sets the preference whether HTTP redirects should be followed. By default HTTP redirects will be followed.
Sets the value of the request property associated with the given property name.
key | the name of the request property |
---|---|
value | the value of the request property |