public interface PackageShare
PackageShare
...Modifier and Type | Field and Description |
---|---|
static String |
COOKIE_ID_NAME |
static String |
PARAM_CLIENT_ID_NAME |
Modifier and Type | Method and Description |
---|---|
PackageShareSession |
getSession(javax.servlet.http.HttpServletRequest req)
Returns the session with the id provided with the cookie in the given
request.
|
PackageShareSession |
getSession(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Returns the session with the id provided with the cookie in the given
request.
|
PackageShareSession |
getSession(String id)
Returns the session of the given id.
|
PackageShareSession |
login(Session session,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String user,
String pass)
Performs a login on the package share server.
|
static final String COOKIE_ID_NAME
static final String PARAM_CLIENT_ID_NAME
PackageShareSession getSession(String id)
id
- the idnull
PackageShareSession getSession(javax.servlet.http.HttpServletRequest req)
null
if no such cookiereq
- the requestPackageShareSession getSession(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
req
- the requestresp
- the responsePackageShareSession login(Session session, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String user, String pass) throws IOException
null
is returned. otherwise the session data will have:
{ server: { host: "https://dev.day.com", message: "Welcome. Server Ready..." }, user: { anonymous: false, userId: "tripod", name: "Toby", company: "Day" }, shares: { day: { title: "Day", readOnly: false }, ... }
session
- jcr sessionreq
- the requestresp
- the responseuser
- user namepass
- pass wordnull
if the login is invalidIOException
- if there was an error during I/O with the server."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"