|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.server.ui.SessionUIResource
@Path(value="/uisession") public class SessionUIResource
Session resource api
This provides api for all things in session.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
The Constant LOG. |
Constructor Summary | |
---|---|
SessionUIResource()
Instantiates a new session ui resource. |
Method Summary | |
---|---|
APIResult |
closeSession(UUID publicId)
Close a Lens server session. |
String |
getMessage()
API to know if session service is up and running |
static LensSessionHandle |
getOpenSession(UUID id)
get open session from uuid |
LensSessionHandle |
openSession(String username,
String password,
String database,
LensConf sessionconf)
Create a new session with Lens server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public SessionUIResource() throws LensException
LensException
- the lens exceptionMethod Detail |
---|
public static LensSessionHandle getOpenSession(UUID id)
id
-
@GET @Produces(value="text/plain") public String getMessage()
@POST @Consumes(value="multipart/form-data") @Produces(value={"application/json","application/xml","text/plain"}) public LensSessionHandle openSession(String username, String password, @DefaultValue(value="") String database, LensConf sessionconf)
username
- User name of the Lens server userpassword
- Password of the Lens server userdatabase
- (Optional) Set current database to supplied valuesessionconf
- Key-value properties which will be used to configure this session
@DELETE @Path(value="{publicId}") @Produces(value={"application/json","application/xml","text/plain"}) public APIResult closeSession(@PathParam(value="publicId") UUID publicId)
publicId
- Session's public id of the session to be closed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |