|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.test.framework.AppDescriptor
com.sun.jersey.test.framework.WebAppDescriptor
public class WebAppDescriptor
A Web-based application descriptor.
An instance of this class is created by creating an instance of
WebAppDescriptor.Builder
, invoking methods to add/modify state, and finally invoking
the WebAppDescriptor.Builder.build()
method.
This application descriptor is compatible with web-based test containers that support Servlets. The following Web-based test container factories are provided:
GrizzlyWebTestContainerFactory
for testing with the Grizzly
Web container and Servlet support.EmbeddedGlassFishTestContainerFactory
for testing with
embedded GlassFish.ExternalTestContainerFactory
for testing when the Web
application is independently deployed in a separate JVM to that of the
tests. For example, the application may be deployed to the
Glassfish v2 or v3 application server.
Nested Class Summary | |
---|---|
static class |
WebAppDescriptor.Builder
The builder for building a Web-based application descriptor. |
static class |
WebAppDescriptor.FilterDescriptor
|
Nested classes/interfaces inherited from class com.sun.jersey.test.framework.AppDescriptor |
---|
AppDescriptor.AppDescriptorBuilder<T extends AppDescriptor.AppDescriptorBuilder,V extends AppDescriptor> |
Method Summary | |
---|---|
Map<String,String> |
getContextParams()
Get the context parameters. |
String |
getContextPath()
Get the context path. |
List<WebAppDescriptor.FilterDescriptor> |
getFilters()
Get the filter class. |
Map<String,String> |
getInitParams()
Get the initialization parameters. |
List<Class<? extends EventListener>> |
getListeners()
Get all the registered Listener classes |
Class<? extends javax.servlet.http.HttpServlet> |
getServletClass()
Get the servlet class. |
String |
getServletPath()
Get the servlet path. |
Methods inherited from class com.sun.jersey.test.framework.AppDescriptor |
---|
getClientConfig |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Map<String,String> getInitParams()
public Map<String,String> getContextParams()
public Class<? extends javax.servlet.http.HttpServlet> getServletClass()
public List<WebAppDescriptor.FilterDescriptor> getFilters()
public String getContextPath()
public String getServletPath()
public List<Class<? extends EventListener>> getListeners()
null
if none is registered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |