|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Contract to connect to a servlet service. The implementing classes differ from how they look up the servlet service.
This class was designed similar to URLConnection
.
Method Summary | |
void |
connect()
Connect to the servlet service. |
String |
getContentType()
Get the mime-type of the servlet-service. |
InputStream |
getInputStream()
Read the input stream from the servlet service response. |
long |
getLastModified()
Get the last modification date of the servlet service. |
OutputStream |
getOutputStream()
Get an output stream that writes as POST to this connection. |
int |
getResponseCode()
|
URI |
getURI()
Get a URI representing this servlet connection. |
void |
setIfModifiedSince(long ifmodifiedsince)
Set the last modification date if you want to make use of caching. |
Method Detail |
public void setIfModifiedSince(long ifmodifiedsince)
ifmodifiedsince
- The timestamp of the last known resource.public OutputStream getOutputStream()
public void connect() throws IOException, ServletException
IOException
- The connection to the servlet service can't be established.
ServletException
- Any other problem when connecting to a servlet service.public InputStream getInputStream() throws IOException, ServletException
IOException
- The connection to the servlet service can't be established.
ServletException
- Any other problem when connecting to a servlet service.public int getResponseCode() throws IOException
IOException
public long getLastModified()
public String getContentType()
public URI getURI()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |