|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.storm.ContentLoader
This class encapsulates a data source. There are a number of ways of specifying content, ranging from a simple url, through a supplied URLConnection, to just giving an InputStream containing the actual content.
| Constructor Summary | |
ContentLoader(String url,
String contentType)
Specify the content through an URL. |
|
ContentLoader(URLConnection urlc,
String contentType)
Specify the content by suppling a URLConnection which represents the resource. |
|
ContentLoader(URL base,
InputStream in,
String contentType)
Some content is present in the supplied InputStream. |
|
ContentLoader(URL u,
String contentType)
Specify the content through an URL. |
|
ContentLoader(URL base,
String loc,
String contentType)
Specify the content by using a URL as base location and a string as the relative location. |
|
| Method Summary | |
String |
getContentCharset()
|
String |
getContentType()
|
CookieSet |
getCookieSet()
|
IOException |
getException()
|
String |
getHeaderField(int i)
|
String |
getHeaderFieldKey(int i)
|
InputStream |
getInputStream()
|
String |
getLocation()
|
Hashtable |
getParams()
|
byte[] |
getPostData()
|
boolean |
getRedirected()
|
String |
getReferer()
|
String |
getRequestProperty(String property)
|
URL |
getURL()
|
URLConnection |
getURLConnection()
Will create the URLConnection, but not connect it. |
boolean |
isFromHistory()
|
protected URLConnection |
openConnection(URL url)
Returns a URLConnection object that represents a
connection to the remote object referred to by the url. |
void |
setIframe(boolean flag)
|
protected void |
setInputStream(InputStream inputStream)
|
void |
setParams(Hashtable h)
|
void |
setPostData(String type,
byte[] d)
|
void |
setPostStream(String type,
InputStream ioStream)
|
void |
setRedirected(boolean flag)
|
void |
setReferer(String r)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ContentLoader(URL u,
String contentType)
public ContentLoader(String url,
String contentType)
public ContentLoader(URL base,
String loc,
String contentType)
public ContentLoader(URLConnection urlc,
String contentType)
public ContentLoader(URL base,
InputStream in,
String contentType)
| Method Detail |
public void setRedirected(boolean flag)
public boolean getRedirected()
public void setIframe(boolean flag)
public boolean isFromHistory()
public String getReferer()
public void setReferer(String r)
public void setPostData(String type,
byte[] d)
public void setPostStream(String type,
InputStream ioStream)
public byte[] getPostData()
public String getContentType()
public URL getURL()
public URLConnection getURLConnection()
public String getRequestProperty(String property)
public String getHeaderFieldKey(int i)
public String getHeaderField(int i)
public CookieSet getCookieSet()
public InputStream getInputStream()
protected void setInputStream(InputStream inputStream)
public String getContentCharset()
public String getLocation()
public void setParams(Hashtable h)
public Hashtable getParams()
public IOException getException()
public String toString()
protected URLConnection openConnection(URL url)
throws IOException
URLConnection object that represents a
connection to the remote object referred to by the url.
A new connection is opened every time by calling the
openConnection method of the protocol handler for
url.
For HTTP, an HttpURLConnection will be returned.
url - the url from which URLConnection is opened.
URLConnection to the url.
IOException - if an I/O exception occurs.URLConnection,
URLStreamHandler.openConnection(java.net.URL)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||