|
|||||||||
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(java.net.URL url,
java.lang.String request)
Sends a request to a URL and returns the response. |
java.lang.String |
getEncodingCharsetName()
Returns the name of the character set use for encoding the XML string. |
byte[] |
getResponse(java.net.URL url,
java.lang.String request)
Sends a request to a URL and returns the response. |
java.util.concurrent.Future<byte[]> |
getResponseViaSubmit(java.net.URL url,
java.lang.String request)
Submits a request for background execution. |
void |
setCache(java.util.Map<java.lang.String,java.lang.String> config,
java.util.Map<java.lang.String,java.lang.String> properties)
Sets the cache class to use as a SOAP message cache. |
java.util.concurrent.Future<byte[]> |
submit(java.net.URL url,
java.lang.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(java.net.URL url, java.lang.String request) throws XmlaOlap4jProxyException
url
- Target URLrequest
- Request string
XmlaOlap4jProxyException
public java.util.concurrent.Future<byte[]> getResponseViaSubmit(java.net.URL url, java.lang.String request)
url
- URLrequest
- Request
public java.lang.String getEncodingCharsetName()
XmlaOlap4jProxy
public void setCache(java.util.Map<java.lang.String,java.lang.String> config, java.util.Map<java.lang.String,java.lang.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(java.net.URL url, java.lang.String request) throws XmlaOlap4jProxyException
XmlaOlap4jProxy
get
in interface XmlaOlap4jProxy
url
- Target URLrequest
- Request string
XmlaOlap4jProxyException
- If anything occurs during the
request execution.public java.util.concurrent.Future<byte[]> submit(java.net.URL url, java.lang.String request)
XmlaOlap4jProxy
submit
in interface XmlaOlap4jProxy
url
- URLrequest
- Request
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |