|
||||||||||
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. |
static HashMap<UUID,LensSessionHandle> |
openSessions
The open sessions. |
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 |
LensSessionHandle |
openSession(String username,
String password,
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
public static HashMap<UUID,LensSessionHandle> openSessions
Constructor Detail |
---|
public SessionUIResource() throws LensException
LensException
- the lens exceptionMethod Detail |
---|
@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, LensConf sessionconf)
username
- User name of the Lens server userpassword
- Password of the Lens server usersessionconf
- 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 |