|
|||||||||
| Home >> All >> recoin >> [ web overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
recoin.web
Class ViewRepository

java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
recoin.web.ViewRepository
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class ViewRepository
- extends javax.servlet.http.HttpServlet
The ViewRepository servlet is the single entry point to the webpages of the
administration web application that administers the RECOIN repository.
This servlet possesses a AdminCommand through which it can communicate with
the administration service inside the RECOIN framework. It serves as a
controller that executes or forwards user commands and delegates the client
to the appropriate pages.
- Version:
- 0.2.9
| Field Summary | |
private java.lang.String |
adminURL
The URL of the remote administration service. |
private recoin.group.connector.AdminCommand |
command
The AdminCommand that handles the communication with the remote administration service. |
private recoin.exception.RECOINException |
initException
A RECOINException to store any Exception that occurs when the servlet is initiated. |
(package private) static org.apache.log4j.Logger |
logger
The logger for this class. |
| Fields inherited from class javax.servlet.http.HttpServlet |
|
| Fields inherited from class javax.servlet.GenericServlet |
|
| Constructor Summary | |
ViewRepository()
|
|
| Method Summary | |
void |
createAdminCommand()
Creates the AdminCommand. |
void |
destroy()
Destroys the servlet. |
private void |
dispatch(java.lang.String url,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Uses a RequestDispatcher to forward the specified request and response to the specified URL. |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP GET method. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP POST method. |
java.lang.String |
getServletInfo()
Returns a short description of the servlet. |
void |
init(javax.servlet.ServletConfig config)
Initializes the servlet with the specified ServletConfig. During initialization the value for the adminURL
field is read from the ServletConfig and the AdminCommand
is created. |
private void |
prepareComponentDetail(recoin.group.ComponentView cView,
javax.servlet.http.HttpServletRequest request)
Prepares the specified request by setting the necessary attributes using the specified ComponentView. |
private void |
prepareModuleDetail(recoin.group.ModuleView mView,
javax.servlet.http.HttpServletRequest request)
Prepares the specified request by setting the necessary attributes using the specified ModuleView. |
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes requests for both HTTP GET and POST
methods. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
logger
static org.apache.log4j.Logger logger
- The logger for this class.
adminURL
private java.lang.String adminURL
- The URL of the remote administration service.
initException
private recoin.exception.RECOINException initException
- A RECOINException to store any Exception that occurs when the
servlet is initiated.
command
private recoin.group.connector.AdminCommand command
- The AdminCommand that handles the communication with the remote
administration service.
| Constructor Detail |
ViewRepository
public ViewRepository()
| Method Detail |
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
- Initializes the servlet with the specified ServletConfig.
During initialization the value for theadminURLfield is read from the ServletConfig and the AdminCommand is created.
destroy
public void destroy()
- Destroys the servlet.
createAdminCommand
public void createAdminCommand()
- Creates the AdminCommand.
processRequest
protected void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
- Processes requests for both HTTP
GETandPOSTmethods.
dispatch
private void dispatch(java.lang.String url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
- Uses a RequestDispatcher to forward the specified request and response to
the specified URL.
prepareModuleDetail
private void prepareModuleDetail(recoin.group.ModuleView mView, javax.servlet.http.HttpServletRequest request) throws java.rmi.RemoteException
- Prepares the specified request by setting the necessary attributes using the
specified ModuleView.
prepareComponentDetail
private void prepareComponentDetail(recoin.group.ComponentView cView, javax.servlet.http.HttpServletRequest request) throws java.rmi.RemoteException
- Prepares the specified request by setting the necessary attributes using the
specified ComponentView.
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
- Handles the HTTP
GETmethod.
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
- Handles the HTTP
POSTmethod.
getServletInfo
public java.lang.String getServletInfo()
- Returns a short description of the servlet.
|
|||||||||
| Home >> All >> recoin >> [ web overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC