|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.jboss.portal.test.framework.portlet.components.AbstractUniversalTestServlet
Universal test servlet that enables to reuse servlet instances across several tests
Field Summary | |
private java.lang.String |
componentId
The test id. |
private org.apache.log4j.Logger |
log
|
protected Joinpoint |
serviceJoinpoint
Jointpoints for service method |
Fields inherited from class javax.servlet.http.HttpServlet |
|
Fields inherited from class javax.servlet.GenericServlet |
|
Constructor Summary | |
AbstractUniversalTestServlet()
Construct a test servlet with a test id computed with the method getTestId(Class) . |
|
AbstractUniversalTestServlet(java.lang.String componentId)
Construct a test servlet with the specified id. |
Method Summary | |
protected java.lang.String |
createComponentId(java.lang.Class clazz)
Get the componentId from the class name. |
protected java.lang.String |
getComponentId()
|
protected Sequence |
getSequence()
Returns Sequence for current testId Returns null if there is no Sequence for current testId |
private SequenceRegistry |
getSequenceRegistry()
Returns SequenceRegistry which should be injected into ServletContext Returns null if there is no SequenceRegistry in context |
Joinpoint |
getServiceJointpoint()
|
abstract void |
reset()
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Standart implementation of service() method to handle requests and invoke actions from sequence |
protected void |
setComponentId(java.lang.String componentId)
|
protected void |
setServiceJointpoint(Joinpoint serviceJoinpoint)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final org.apache.log4j.Logger log
private java.lang.String componentId
protected Joinpoint serviceJoinpoint
Constructor Detail |
public AbstractUniversalTestServlet()
getTestId(Class)
.
public AbstractUniversalTestServlet(java.lang.String componentId)
componentId
- Method Detail |
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
request
- response
-
javax.servlet.ServletException
java.io.IOException
protected java.lang.String createComponentId(java.lang.Class clazz)
private SequenceRegistry getSequenceRegistry()
protected Sequence getSequence() throws javax.servlet.ServletException
javax.servlet.ServletException
- if there is no SequenceRegistryprotected java.lang.String getComponentId()
protected void setComponentId(java.lang.String componentId)
public Joinpoint getServiceJointpoint()
protected void setServiceJointpoint(Joinpoint serviceJoinpoint)
public abstract void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |