|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.wise.lms.httpForward.service.HttpServiceProvider
public class HttpServiceProvider
This is an utility class for actually performing HTTP connection to the target services.
Field Summary | |
---|---|
static java.lang.String |
CHARSET_ENC_ISO_LATIN1
|
static java.lang.String |
CHARSET_ENC_UNICODE8
|
static java.lang.String |
DEFAULT_HTTP_PROTO_VERSION
|
static int |
DEFAULT_INPUT_BUFFER_SIZE
|
Constructor Summary | |
---|---|
HttpServiceProvider()
|
Method Summary | |
---|---|
java.lang.String |
createHttpGETUrl(java.lang.String httpURLBase,
java.util.Map<java.lang.String,java.lang.String> parameters)
Creates a HTTP URL in compliance with the GET parameters encoding |
Response |
executeGET(Request rq)
Performs a GET request using the provided Request data. |
Response |
executePOST(Request rq)
Performs a POST request using the provided Request data. |
java.lang.String |
getCharset()
|
java.lang.String |
getHttpProtoVersion()
|
int |
getInputBufferSize()
|
void |
setCharset(java.lang.String charset)
Specifies the charset to be used when reading the response (default ISO-8859-1) |
void |
setHttpProtoVersion(java.lang.String httpProtoVersion)
Sets the HTTP version to be used to perform the call (default HTTP/1.0) |
void |
setInputBufferSize(int inputBufferSize)
Sets the buffer size to be used when reading the response (default 102400) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CHARSET_ENC_ISO_LATIN1
public static final java.lang.String CHARSET_ENC_UNICODE8
public static final int DEFAULT_INPUT_BUFFER_SIZE
public static final java.lang.String DEFAULT_HTTP_PROTO_VERSION
Constructor Detail |
---|
public HttpServiceProvider()
Method Detail |
---|
public java.lang.String getCharset()
public void setCharset(java.lang.String charset)
charset
- public java.lang.String getHttpProtoVersion()
public void setHttpProtoVersion(java.lang.String httpProtoVersion)
httpProtoVersion
- public int getInputBufferSize()
public void setInputBufferSize(int inputBufferSize)
inputBufferSize
- public Response executeGET(Request rq) throws java.lang.Exception
rq
- The request data
java.lang.Exception
public Response executePOST(Request rq) throws java.lang.Exception
rq
- The request data
java.lang.Exception
public java.lang.String createHttpGETUrl(java.lang.String httpURLBase, java.util.Map<java.lang.String,java.lang.String> parameters) throws java.lang.Exception
httpURLBase
- The fixed part of the URLparameters
- The parameters to append to the URL
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |