Public Methods | |
| AbstractPost (javax.servlet.jsp.JspWriter out, String server, String script) | |
| AbstractPost (String server, String script) throws Exception | |
| AbstractPost (String server, String script, int httpversion) throws Exception | |
Protected Methods | |
| void | setServer (String server) |
| void | setScript (String script) |
| Map | executeRequest (Map input) throws Exception |
| abstract Map | encode (Map unencoded) throws Exception |
| abstract Map | decode (BufferedReader in) throws Exception |
Private Methods | |
| void | setLogger (String log) |
Private Attributes | |
| int | httpversion = 1 |
| String | server = "" |
| String | script = "" |
| boolean | debug = false |
Map encode ( Map unencoded ) throws Exception
Prepares a map for transmission.
Map decode ( BufferedReader in ) throws Exception
Prepares the returned stream from the server.
Definition at line 48 of file AbstractPost.java.
|
||||||||||||||||
|
This constructor is deprecated. Definition at line 62 of file AbstractPost.java. References sosc::AbstractPost::script, and sosc::AbstractPost::server. |
|
||||||||||||
|
Definition at line 67 of file AbstractPost.java. References sosc::AbstractPost::debug, sosc::AbstractPost::script, and sosc::AbstractPost::server. |
|
||||||||||||||||
|
Definition at line 73 of file AbstractPost.java. References sosc::AbstractPost::debug, sosc::AbstractPost::httpversion, sosc::AbstractPost::script, and sosc::AbstractPost::server. |
|
|
Override this method for new processors. We want every value returned to parsed and kicked back in the form of a map. TODO: can't just roll over the header, cause their may be cookies... instead, look for the end of the header and go from there. Referenced by sosc::AbstractPost::executeRequest(). |
|
|
Override this method for new processors. We assume that the map being passed in is of strings and not arrays. Referenced by sosc::AbstractPost::executeRequest(). |
|
|
executeRequest() <br/> Gets a SSL connection with the server, formats and sends a HTTP request, receives the server response, and parses the response into a Hashmap. For now, this is always a post. i guess you could override it to do a get, but why bother. Definition at line 112 of file AbstractPost.java. References sosc::AbstractPost::decode(), sosc::AbstractPost::encode(), sosc::AbstractPost::httpversion, sosc::AbstractPost::script, and sosc::AbstractPost::server. |
|
|
I am broken. =( Definition at line 210 of file AbstractPost.java. |
|
|
A way to set the server during the lifetime of a post. Definition at line 98 of file AbstractPost.java. References sosc::AbstractPost::script. |
|
|
A way to set the script during the lifetime of a post. Definition at line 91 of file AbstractPost.java. References sosc::AbstractPost::server. |
|
|
same old Definition at line 57 of file AbstractPost.java. Referenced by sosc::AbstractPost::AbstractPost(). |
|
|
version of http to use to connect to server Definition at line 51 of file AbstractPost.java. Referenced by sosc::AbstractPost::AbstractPost(), and sosc::AbstractPost::executeRequest(). |
|
|
the rest of the url Definition at line 55 of file AbstractPost.java. Referenced by sosc::AbstractPost::AbstractPost(), sosc::AbstractPost::executeRequest(), and sosc::AbstractPost::setScript(). |
|
|
the server we are gonna hit Definition at line 53 of file AbstractPost.java. Referenced by sosc::AbstractPost::AbstractPost(), sosc::AbstractPost::executeRequest(), and sosc::AbstractPost::setServer(). |
1.2.15