it.eng.spagobi.plugins.ireport
Class ServerRequest
java.lang.Object
it.eng.spagobi.plugins.ireport.ServerRequest
- public class ServerRequest
- extends java.lang.Object
Method Summary |
void |
executeServerRequest(java.util.Properties properties)
This method sends a request to the server with the post method.
|
static ServerRequest |
getMainInstance()
|
org.apache.commons.httpclient.methods.PostMethod |
getPostMethod()
This method creates a PostMethod element and attaches all the parameters required or files |
void |
setOperation(java.lang.String operation)
|
void |
setProperties(java.util.Properties properties)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getMainInstance
public static ServerRequest getMainInstance()
executeServerRequest
public void executeServerRequest(java.util.Properties properties)
- This method sends a request to the server with the post method.
If first attaches (key,value) or file elements
Then it executes the request and wait for the server response
It can manage three operations:
LOGIN
CHECK IN
CHECK OUT
- Parameters:
properties
- It contains all the pairs (key, value) used to distinguish the kind of operation (LOGIN, CHECKIN, CHECKOUT)
or to be sent to be attached as parameters for the server
getPostMethod
public org.apache.commons.httpclient.methods.PostMethod getPostMethod()
- This method creates a PostMethod element and attaches all the parameters required or files
- Returns:
- Post Method created if all the parameters and file have been attached correctly, false otherwise
setProperties
public void setProperties(java.util.Properties properties)
setOperation
public void setOperation(java.lang.String operation)