|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ace.gateway.log.task.Connection
public class Connection
Helper class that abstracts handling of a URLConnection somewhat.
| Constructor Summary | |
|---|---|
Connection(URL url)
|
|
| Method Summary | |
|---|---|
void |
close()
Should be called when a Connection is used to do a POST (write to it's outputstream)
without reading it's inputstream (the response). |
InputStream |
getInputStream()
Enables the retrieving of input using this connection and returns an inputstream to the connection. |
OutputStream |
getOutputStream()
Enables the sending of output using this connection and returns an outputstream to the connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Connection(URL url)
throws IOException
IOException| Method Detail |
|---|
public InputStream getInputStream()
throws IOException
IOException - If I/O problems occur.
public OutputStream getOutputStream()
throws IOException
IOException - If I/O problems occur.public void close()
Connection is used to do a POST (write to it's outputstream)
without reading it's inputstream (the response). Calling this will make sure the POST request is sent.
If no data was written to the connection nothing is done.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||