| java.lang.Object org.apache.xerces.xni.parser.XMLInputSource org.apache.xerces.util.HTTPInputSource
HTTPInputSource | final public class HTTPInputSource extends XMLInputSource (Code) | | 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.
author: Michael Glavassevich, IBM version: $Id: HTTPInputSource.java 447241 2006-09-18 05:12:57Z mrglavas $ |
Constructor Summary | |
public | HTTPInputSource(String publicId, String systemId, String baseSystemId) 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.
Parameters: publicId - The public identifier, if known. Parameters: systemId - The system identifier. | public | HTTPInputSource(XMLResourceIdentifier resourceIdentifier) Constructs an input source from a XMLResourceIdentifier
object, leaving resolution of the entity and opening of
the input stream up to the caller. | public | HTTPInputSource(String publicId, String systemId, String baseSystemId, InputStream byteStream, String encoding) Constructs an input source from a byte stream.
Parameters: publicId - The public identifier, if known. Parameters: systemId - The system identifier. | public | HTTPInputSource(String publicId, String systemId, String baseSystemId, Reader charStream, String encoding) Constructs an input source from a character stream.
Parameters: publicId - The public identifier, if known. Parameters: systemId - The system identifier. |
fFollowRedirects | protected boolean fFollowRedirects(Code) | | Preference for whether HTTP redirects should be followed. *
|
fHTTPRequestProperties | protected Map fHTTPRequestProperties(Code) | | HTTP request properties. *
|
HTTPInputSource | public HTTPInputSource(String publicId, String systemId, String baseSystemId)(Code) | | 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.
Parameters: publicId - The public identifier, if known. Parameters: systemId - The system identifier. This value shouldalways be set, if possible, and can berelative or absolute. If the system identifieris relative, then the base system identifiershould be set. Parameters: baseSystemId - The base system identifier. This value shouldalways be set to the fully expanded URI of thebase system identifier, if possible. |
HTTPInputSource | public HTTPInputSource(XMLResourceIdentifier resourceIdentifier)(Code) | | Constructs an input source from a XMLResourceIdentifier
object, leaving resolution of the entity and opening of
the input stream up to the caller.
Parameters: resourceIdentifier - the XMLResourceIdentifier containing the information |
HTTPInputSource | public HTTPInputSource(String publicId, String systemId, String baseSystemId, InputStream byteStream, String encoding)(Code) | | Constructs an input source from a byte stream.
Parameters: publicId - The public identifier, if known. Parameters: systemId - The system identifier. This value shouldalways be set, if possible, and can berelative or absolute. If the system identifieris relative, then the base system identifiershould be set. Parameters: baseSystemId - The base system identifier. This value shouldalways be set to the fully expanded URI of thebase system identifier, if possible. Parameters: byteStream - The byte stream. Parameters: encoding - The encoding of the byte stream, if known. |
HTTPInputSource | public HTTPInputSource(String publicId, String systemId, String baseSystemId, Reader charStream, String encoding)(Code) | | Constructs an input source from a character stream.
Parameters: publicId - The public identifier, if known. Parameters: systemId - The system identifier. This value shouldalways be set, if possible, and can berelative or absolute. If the system identifieris relative, then the base system identifiershould be set. Parameters: baseSystemId - The base system identifier. This value shouldalways be set to the fully expanded URI of thebase system identifier, if possible. Parameters: charStream - The character stream. Parameters: encoding - The original encoding of the byte streamused by the reader, if known. |
getFollowHTTPRedirects | public boolean getFollowHTTPRedirects()(Code) | | Returns the preference whether HTTP redirects should
be followed. By default HTTP redirects will be followed.
|
getHTTPRequestProperties | public Iterator getHTTPRequestProperties()(Code) | | 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.
an iterator for the request properties thisinput source contains |
getHTTPRequestProperty | public String getHTTPRequestProperty(String key)(Code) | | Returns the value of the request property
associated with the given property name.
Parameters: key - the name of the request property the value of the request property or null if this property has notbeen set |
setFollowHTTPRedirects | public void setFollowHTTPRedirects(boolean followRedirects)(Code) | | Sets the preference whether HTTP redirects should
be followed. By default HTTP redirects will be followed.
|
setHTTPRequestProperty | public void setHTTPRequestProperty(String key, String value)(Code) | | Sets the value of the request property
associated with the given property name.
Parameters: key - the name of the request property Parameters: value - the value of the request property |
|
|