|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLConnection
ccs.http.ContentConnection
public class ContentConnection
A connnection which returns its content via a SwappingBuffer. This is a
common mechanism. This class is logically abstract; as it stands,
it doesn't do anything. Generally you'll override connect to
set the content, returned to the caller via the SwappingBuffer q.
| Field Summary | |
|---|---|
protected SwappingBuffer |
q
Deprecated. The SwappingBuffer which will contain the return from this connection. |
| Fields inherited from class java.net.URLConnection |
|---|
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
| Constructor Summary | |
|---|---|
protected |
ContentConnection(java.net.URL url)
Deprecated. Construct a ContentConnection. |
| Method Summary | |
|---|---|
void |
connect()
Deprecated. Connect to the resource. |
int |
getContentLength()
Deprecated. Return the length of the content. |
java.lang.String |
getContentType()
Deprecated. Return the MIME type of the content. |
java.io.InputStream |
getInputStream()
Deprecated. Get an input stream. |
| Methods inherited from class java.net.URLConnection |
|---|
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SwappingBuffer q
| Constructor Detail |
|---|
protected ContentConnection(java.net.URL url)
| Method Detail |
|---|
public void connect()
throws java.io.IOException
connect in class java.net.URLConnectionjava.io.IOException
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.URLConnectionjava.io.IOExceptionpublic int getContentLength()
getContentLength in class java.net.URLConnectionpublic java.lang.String getContentType()
q.mimeType or
leave everything alone to have the system make up its own mind (based on the
URL as usual).
getContentType in class java.net.URLConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||