|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.services.webpage.JetspeedWebPageService
This is the default implementation of the WebPageService
interface.
It is a service that provides Web Page facade and delegation services for clients to transparently access resources existing on web pages from requests originating from the portal server.
Since the WebPage service is giving the appearance of a single session to the client, the service needs to manage the synchronization of sessions, including single-sign-on, and security authorization permissions between the the portal server and one or more sites.
Field Summary | |
static java.lang.String |
INIT_PROPERTIES_PARAM
|
static java.lang.String |
SERVICE_NAME
The name of this service |
static java.lang.String |
SESSION_MAP
|
static java.lang.String |
URL_SESSION_MAP
|
Constructor Summary | |
JetspeedWebPageService()
|
Method Summary | |
void |
destroy()
One time de-initialization of the proxy service |
void |
get(javax.servlet.http.HttpServlet servlet,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
The primary method invoked when the a Jetspeed GET is executed. |
java.lang.String |
getErrorString()
Returns the error string from failed initialized. |
java.lang.String |
getResourcePath(java.lang.String url,
javax.servlet.http.HttpServletRequest request)
Creates the full path the requested resource on the site from a relative path in request. |
SessionMap |
getSession(java.lang.String id)
Returns a session, give a string id key identifying that session. |
java.util.Collection |
getSessions()
Returns a snapshot collection of all the active and inactive sessions. |
Site |
getSite(java.lang.String sid)
Given a Site id, maps to base URL for that site and returns the Site object |
java.util.Collection |
getSites()
Returns a snapshot collection of all the managed sites in the system. |
java.lang.String |
getTargetBase(java.lang.String url)
Maps a full URL path to a resource to a base path given: http://localhost:8080/jetspeed/search/index.html returns: http://localhost:8080/jetspeed/ |
boolean |
init(javax.servlet.ServletConfig config)
One time initialization of the proxy service |
boolean |
isInit()
Returns true if the service was initialized successfully. |
void |
post(javax.servlet.http.HttpServlet servlet,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
The primary method invoked when the a Jetspeed POST is executed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SESSION_MAP
public static final java.lang.String URL_SESSION_MAP
public static final java.lang.String INIT_PROPERTIES_PARAM
public static final java.lang.String SERVICE_NAME
Constructor Detail |
public JetspeedWebPageService()
Method Detail |
public void get(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
get
in interface org.apache.jetspeed.services.webpage.WebPageService
servlet
- the Servlet.request
- Servlet request.response
- Servlet response.
java.io.IOException
- a servlet exception.
javax.servlet.ServletException
- a servlet exception.public void post(javax.servlet.http.HttpServlet servlet, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
post
in interface org.apache.jetspeed.services.webpage.WebPageService
servlet
- the Servlet.request
- Servlet request.response
- Servlet response.
java.io.IOException
- a servlet exception.
javax.servlet.ServletException
- a servlet exception.public Site getSite(java.lang.String sid) throws javax.servlet.ServletException
sid
- the string Site ID
javax.servlet.ServletException
public java.lang.String getResourcePath(java.lang.String url, javax.servlet.http.HttpServletRequest request)
url
- the base url for the site.request
- the Servlet request.
public java.lang.String getTargetBase(java.lang.String url) throws javax.servlet.ServletException
url
- the full URL of the resource.
javax.servlet.ServletException
public boolean init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException, java.io.IOException
init
in interface org.apache.jetspeed.services.webpage.WebPageService
config
- the servlet configuration.
java.io.IOException
- a servlet exception.
javax.servlet.ServletException
- a servlet exception.public boolean isInit()
isInit
in interface org.apache.jetspeed.services.webpage.WebPageService
public void destroy()
destroy
in interface org.apache.jetspeed.services.webpage.WebPageService
public java.util.Collection getSessions()
getSessions
in interface org.apache.jetspeed.services.webpage.WebPageService
public SessionMap getSession(java.lang.String id)
getSession
in interface org.apache.jetspeed.services.webpage.WebPageService
id
- The ID of the session.
public java.util.Collection getSites()
getSites
in interface org.apache.jetspeed.services.webpage.WebPageService
public java.lang.String getErrorString()
getErrorString
in interface org.apache.jetspeed.services.webpage.WebPageService
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |