|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.servletservice.ServletConnection
Implementation of a URLConnection that gets its content by
invoking the Block.
TODO Plenty of work left to have a meaningfull implementation of all methods
| Constructor Summary | |
ServletConnection(String url)
Construct a new object |
|
| Method Summary | |
void |
connect()
|
String |
getContentType()
|
String |
getHeaderField(String name)
|
long |
getHeaderFieldDate(String name,
long Default)
|
InputStream |
getInputStream()
Return an InputStream object to read from the source. |
long |
getLastModified()
|
OutputStream |
getOutputStream()
Returns an output stream that writes as POST to this connection. |
int |
getResponseCode()
|
void |
setIfModifiedSince(long ifmodifiedsince)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServletConnection(String url)
throws MalformedURLException
| Method Detail |
public void connect()
throws IOException,
ServletException
IOException
ServletException
public InputStream getInputStream()
throws IOException,
ServletException
InputStream object to read from the source.
IOException
ServletExceptionpublic void setIfModifiedSince(long ifmodifiedsince)
public long getLastModified()
public String getContentType()
public long getHeaderFieldDate(String name,
long Default)
public String getHeaderField(String name)
public int getResponseCode()
throws IOException
IOException
public OutputStream getOutputStream()
throws IllegalStateException
IllegalStateException - - if already connected
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||