| java.lang.Object communications.ReadConnection communications.PostConnection
PostConnection | public class PostConnection extends ReadConnection (Code) | | Wraps up managing a "post" style connection.
Note that the internal URLConnection,
contrary to the URLConnection default, is
setDoOutput(true).
|
validOut | protected boolean validOut(Code) | | Whether the current stream is valid.
|
PostConnection | public PostConnection(String s)(Code) | | Constructs a PostConnection.
Parameters: s - the URL |
closeOut | public boolean closeOut()(Code) | | Closes the output stream.
|
doWrite | public String doWrite(String s)(Code) | | Encapsulated post action.
Parameters: s - data to post |
doWrite | public String doWrite(String s, boolean b)(Code) | | Encapsulated post action.
Parameters: s - data to post Parameters: b - do read after post |
doWrite | public static String doWrite(String url, String s)(Code) | | Encapsulated post action.
Assumes that a read should be attempted after the post.
Parameters: url - target url Parameters: s - data to post |
doWrite | public static String doWrite(String url, String s, boolean b)(Code) | | Encapsulated post action.
Parameters: url - target url Parameters: s - data to post Parameters: b - do a get after the post |
isValidOut | public boolean isValidOut()(Code) | | Returns whether the stream valid.
|
openCon | protected boolean openCon()(Code) | | Opens the connection.
|
openOut | public boolean openOut()(Code) | | Opens the output stream.
|
setURL | public void setURL(String s)(Code) | | Sets the URL.
Parameters: s - the URL |
writeBytes | public void writeBytes(String s)(Code) | | Write bytes to the data output stream.
Parameters: s - bytes to write |
|
|