|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.programix.da2.bridge.http.HttpDABridgeProcessor
public class HttpDABridgeProcessor
This implementation of DABridgeProcessor that serializes
DABridgeRequest's and DABridgeResponse's over
a the HTTP (or HTTPS) protocol to a servlet. The actual type of object
serialized in both directions is a TransferWrapper.
| Field Summary | |
|---|---|
static int |
COMPRESSION_THRESHOLD_DEFAULT_VALUE
|
static String |
COMPRESSION_THRESHOLD_KEY
This constant is defined as "bridge.compression.threshold" and is used as the optional key in the config ValueMap to retrieve the minimum number of bytes to be sent up before compression is used. |
static String |
CONTENT_TYPE_DEFAULT_VALUE
|
static String |
CONTENT_TYPE_KEY
This constant is defined as "bridge.content-type" and is used as the optional key in the config ValueMap to retrieve the Content-Type to send up to the server. |
static String |
SERVLET_URL_KEY
This constant is defined as "bridge.servlet.url" and is used as the key in the config ValueMap to retrieve the string representation of the URL to use to talk to the server. |
| Constructor Summary | |
|---|---|
HttpDABridgeProcessor()
|
|
| Method Summary | |
|---|---|
void |
init(ValueMap config)
The required key needed in the config is SERVLET_URL_KEY. |
DABridgeResponse |
process(DABridgeRequest req)
|
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SERVLET_URL_KEY
public static final String CONTENT_TYPE_KEY
CONTENT_TYPE_DEFAULT_VALUE if not
present in the configuration.
public static final String CONTENT_TYPE_DEFAULT_VALUE
public static final String COMPRESSION_THRESHOLD_KEY
COMPRESSION_THRESHOLD_DEFAULT_VALUE if not
present in the configuration.
public static final int COMPRESSION_THRESHOLD_DEFAULT_VALUE
| Constructor Detail |
|---|
public HttpDABridgeProcessor()
| Method Detail |
|---|
public void init(ValueMap config)
throws DAException
SERVLET_URL_KEY.
init in interface DABridgeProcessorDAExceptionpublic void shutdown()
shutdown in interface DABridgeProcessor
public DABridgeResponse process(DABridgeRequest req)
throws DAException
process in interface DABridgeProcessorDAException
|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||