org.olap4j.driver.xmla.proxy
Interface XmlaOlap4jProxy

All Known Subinterfaces:
XmlaOlap4jCachedProxy, XmlaOlap4jDriver.Proxy
All Known Implementing Classes:
XmlaOlap4jHttpProxy

public interface XmlaOlap4jProxy

Defines a common set of methods for proxy objects.

Version:
$Id: XmlaOlap4jProxy.java 243 2009-05-22 07:21:37Z jhyde $

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.
 java.util.concurrent.Future<byte[]> submit(java.net.URL url, java.lang.String request)
          Submits a request for background execution.
 

Method Detail

get

byte[] get(java.net.URL url,
           java.lang.String request)
           throws XmlaOlap4jProxyException,
                  java.io.IOException
Sends a request to a URL and returns the response.

Parameters:
url - Target URL
request - Request string
Returns:
Response The byte array that contains the whole response from the server.
Throws:
java.io.IOException - This exception declaration will be removed soon. Don't catch this. Catch XmlaOlap4jProxyException instead.
XmlaOlap4jProxyException - If anything occurs during the request execution.

submit

java.util.concurrent.Future<byte[]> submit(java.net.URL url,
                                           java.lang.String request)
Submits a request for background execution.

Parameters:
url - URL
request - Request
Returns:
Future object representing the submitted job

getEncodingCharsetName

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


SourceForge.net_Logo