001 /*
002 // $Id: XmlaOlap4jServerInfos.java 483 2012-01-05 23:43:18Z jhyde $
003 //
004 // Licensed to Julian Hyde under one or more contributor license
005 // agreements. See the NOTICE file distributed with this work for
006 // additional information regarding copyright ownership.
007 //
008 // Julian Hyde licenses this file to you under the Apache License,
009 // Version 2.0 (the "License"); you may not use this file except in
010 // compliance with the License. You may obtain a copy of the License at:
011 //
012 // http://www.apache.org/licenses/LICENSE-2.0
013 //
014 // Unless required by applicable law or agreed to in writing, software
015 // distributed under the License is distributed on an "AS IS" BASIS,
016 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017 // See the License for the specific language governing permissions and
018 // limitations under the License.
019 */
020 package org.olap4j.driver.xmla;
021
022 import java.net.URL;
023
024 /**
025 * Common set of functions for an XMLA URL Provider.
026 * @version $Id: XmlaOlap4jServerInfos.java 483 2012-01-05 23:43:18Z jhyde $
027 */
028 public interface XmlaOlap4jServerInfos {
029 /**
030 * Returns the URL to use.
031 * @return the url.
032 */
033 URL getUrl();
034 /**
035 * Returns the username to use with the URL.
036 * @return the username.
037 */
038 String getUsername();
039 /**
040 * Returns the password to use with the URL.
041 * @return the password.
042 */
043 String getPassword();
044 /**
045 * Returns a unique sesison ID to use.
046 * @return the session id.
047 */
048 String getSessionId();
049 /**
050 * Stores the session id on the server.
051 * @param sessionId The session id to use.
052 */
053 void setSessionId(String sessionId);
054 }
055 // End XmlaOlap4jServerInfos.java