|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.infoservice.HttpRequestStructure
public final class HttpRequestStructure
This class describes an HTTP request.
Field Summary | |
---|---|
static int |
HTTP_COMMAND_GET
This is the constant for the http get command. |
static int |
HTTP_COMMAND_POST
This is the constant for the http post command. |
private int |
m_httpCommand
The command of the http request this HttpCommandStructure is used for. |
private java.lang.String |
m_httpFileName
The filename on the HTTP server which is requested. |
private org.w3c.dom.Document |
m_postDocument
An XML document with data which is posted to the HTTP server. |
Constructor Summary | |
---|---|
private |
HttpRequestStructure(int a_httpCommand,
java.lang.String a_httpFileName,
org.w3c.dom.Document a_postDocument)
Creates a new HttpRequestStructure instance. |
Method Summary | |
---|---|
static HttpRequestStructure |
createGetRequest(java.lang.String a_httpFileName)
Creates a new HTTP GET request. |
static HttpRequestStructure |
createPostRequest(java.lang.String a_httpFileName,
org.w3c.dom.Document a_postDocument)
Creates a new HTTP POST request. |
int |
getRequestCommand()
Returns the command of the http request this HttpCommandStructure is used for. |
java.lang.String |
getRequestFileName()
Returns the filename on the HTTP server which is requested. |
org.w3c.dom.Document |
getRequestPostDocument()
Returns the data which shall be posted to the server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HTTP_COMMAND_GET
public static final int HTTP_COMMAND_POST
private int m_httpCommand
private java.lang.String m_httpFileName
private org.w3c.dom.Document m_postDocument
Constructor Detail |
---|
private HttpRequestStructure(int a_httpCommand, java.lang.String a_httpFileName, org.w3c.dom.Document a_postDocument)
a_httpCommand
- The command of the http request the new HttpCommandStructure is used
for. See the constants in this class.a_httpFileName
- The filename on the HTTP server which is requested.a_postDocument
- An XML document with data which is posted to the HTTP server. For the
get method or for posting no data, this value is null.Method Detail |
---|
public static HttpRequestStructure createGetRequest(java.lang.String a_httpFileName)
a_httpFileName
- The filename on the HTTP server which is requested.
public static HttpRequestStructure createPostRequest(java.lang.String a_httpFileName, org.w3c.dom.Document a_postDocument)
a_httpFileName
- The filename on the HTTP server which is requested.a_postDocument
- An XML document which is posted to the HTTP server. If this is null,
an empty post request is done.
public int getRequestCommand()
public java.lang.String getRequestFileName()
public org.w3c.dom.Document getRequestPostDocument()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |