public final class HttpRequestStructure
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier | Constructor and Description |
---|---|
private |
HttpRequestStructure(int a_httpCommand,
java.lang.String a_httpFileName,
org.w3c.dom.Document a_postDocument)
Creates a new HttpRequestStructure instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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.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()
Copyright © 2023. All rights reserved.