public class XmlaOlap4jHttpProxy extends Object
It also takes advantage of the AbstractHttpProxy cookie managing facilities. All cookies received from the end point server will be sent back if they are not expired and they also conform to cookie domain rules.
Constructor and Description |
---|
XmlaOlap4jHttpProxy(XmlaOlap4jDriver driver)
Creates a XmlaOlap4jHttpProxy.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
get(XmlaOlap4jServerInfos serverInfos,
String request)
Sends a request to a URL and returns the response.
|
String |
getEncodingCharsetName()
Returns the name of the character set use for encoding the XML
string.
|
byte[] |
getResponse(XmlaOlap4jServerInfos serverInfos,
String request)
Sends a request to a URL and returns the response.
|
Future<byte[]> |
getResponseViaSubmit(XmlaOlap4jServerInfos serverInfos,
String request)
Submits a request for background execution.
|
void |
setCache(Map<String,String> config,
Map<String,String> properties)
Sets the cache class to use as a SOAP message cache.
|
Future<byte[]> |
submit(XmlaOlap4jServerInfos serverInfos,
String request)
Submits a request for background execution.
|
public XmlaOlap4jHttpProxy(XmlaOlap4jDriver driver)
driver
- Driverpublic byte[] getResponse(XmlaOlap4jServerInfos serverInfos, String request) throws XmlaOlap4jProxyException
request
- Request stringXmlaOlap4jProxyException
public Future<byte[]> getResponseViaSubmit(XmlaOlap4jServerInfos serverInfos, String request)
request
- Requestpublic String getEncodingCharsetName()
XmlaOlap4jProxy
public void setCache(Map<String,String> config, Map<String,String> properties) throws OlapException
XmlaOlap4jCachedProxy
Sets the cache class to use as a SOAP message cache.
Calling this method is not mandatory. If it isn't called, no cache will be used and all SOAP requests will be sent to the service end-point.
setCache
in interface XmlaOlap4jCachedProxy
config
- This contains all the parameters used
to configure the Olap4j driver. It contains the full class name
of the cache implementation to use as well as the raw Cache
config parameters.properties
- The properties to configure the cache,
so all config parameters which started
by Cache.* are inside this convenient thigny.OlapException
XmlaOlap4jCache
public byte[] get(XmlaOlap4jServerInfos serverInfos, String request) throws XmlaOlap4jProxyException
XmlaOlap4jProxy
get
in interface XmlaOlap4jProxy
serverInfos
- Server infos.request
- Request stringXmlaOlap4jProxyException
- If anything occurs during the
request execution.public Future<byte[]> submit(XmlaOlap4jServerInfos serverInfos, String request)
XmlaOlap4jProxy
submit
in interface XmlaOlap4jProxy
serverInfos
- Server infos.request
- Request