org.olap4j.driver.xmla.proxy
Interface XmlaOlap4jProxy

All Known Subinterfaces:
XmlaOlap4jCachedProxy
All Known Implementing Classes:
XmlaOlap4jHttpProxy

public interface XmlaOlap4jProxy

Defines a common set of methods for proxy objects.

Version:
$Id: XmlaOlap4jProxy.java 482 2012-01-05 23:27:27Z jhyde $

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.
 Future<byte[]> submit(XmlaOlap4jServerInfos serverInfos, String request)
          Submits a request for background execution.
 

Method Detail

get

byte[] get(XmlaOlap4jServerInfos serverInfos,
           String request)
           throws XmlaOlap4jProxyException
Sends a request to a URL and returns the response.

Parameters:
serverInfos - Server infos.
request - Request string
Returns:
Response The byte array that contains the whole response from the server.
Throws:
XmlaOlap4jProxyException - If anything occurs during the request execution.

submit

Future<byte[]> submit(XmlaOlap4jServerInfos serverInfos,
                      String request)
Submits a request for background execution.

Parameters:
serverInfos - Server infos.
request - Request
Returns:
Future object representing the submitted job

getEncodingCharsetName

String getEncodingCharsetName()
Returns the name of the character set use for encoding the XML string.


SourceForge.net_Logo