|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.olap4j.driver.xmla.proxy.XmlaOlap4jHttpProxy
public class XmlaOlap4jHttpProxy
Extends the AbstractCachedProxy and serves as a production ready http communication class. Every SOAP request sends a POST call to the destination XMLA server and returns the response as a byte array, conforming to the Proxy interface.
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 Summary | |
---|---|
XmlaOlap4jHttpProxy(XmlaOlap4jDriver driver)
Creates a XmlaOlap4jHttpProxy. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlaOlap4jHttpProxy(XmlaOlap4jDriver driver)
driver
- DriverMethod Detail |
---|
public byte[] getResponse(XmlaOlap4jServerInfos serverInfos, String request) throws XmlaOlap4jProxyException
request
- Request string
XmlaOlap4jProxyException
public Future<byte[]> getResponseViaSubmit(XmlaOlap4jServerInfos serverInfos, String request)
request
- Request
public 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 string
XmlaOlap4jProxyException
- 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
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |