Package org.everrest.assured
Class JettyHttpServer
- java.lang.Object
-
- org.everrest.assured.JettyHttpServer
-
public class JettyHttpServer extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringADMIN_USER_NAMEstatic StringADMIN_USER_PASSWORDprotected org.eclipse.jetty.servlet.ServletContextHandlercontextstatic StringMANAGER_USER_NAMEstatic StringMANAGER_USER_PASSWORDprotected intportstatic StringSECURE_PATHstatic StringSECURE_PATH_SPECstatic StringSECURE_RESTprotected org.eclipse.jetty.server.Serverserverstatic StringUNAUTHORIZED_USERstatic StringUNSECURE_PATH_SPECstatic StringUNSECURE_REST
-
Constructor Summary
Constructors Constructor Description JettyHttpServer()JettyHttpServer(int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(Class<? extends javax.servlet.Filter> filterClass, String pathSpec)voidaddFilter(javax.servlet.Filter filter, String pathSpec)org.eclipse.jetty.servlet.ServletContextHandlergetContext()intgetPort()voidpublish(javax.ws.rs.core.Application application)voidpublishPerRequestGroovyScript(String resourcePath, String name)voidresetFactories()voidresetFilter()voidstart()voidstop()
-
-
-
Field Detail
-
UNSECURE_REST
public static final String UNSECURE_REST
- See Also:
- Constant Field Values
-
UNSECURE_PATH_SPEC
public static final String UNSECURE_PATH_SPEC
- See Also:
- Constant Field Values
-
SECURE_PATH
public static final String SECURE_PATH
- See Also:
- Constant Field Values
-
SECURE_REST
public static final String SECURE_REST
- See Also:
- Constant Field Values
-
SECURE_PATH_SPEC
public static final String SECURE_PATH_SPEC
- See Also:
- Constant Field Values
-
ADMIN_USER_NAME
public static final String ADMIN_USER_NAME
- See Also:
- Constant Field Values
-
ADMIN_USER_PASSWORD
public static final String ADMIN_USER_PASSWORD
- See Also:
- Constant Field Values
-
MANAGER_USER_NAME
public static final String MANAGER_USER_NAME
- See Also:
- Constant Field Values
-
MANAGER_USER_PASSWORD
public static final String MANAGER_USER_PASSWORD
- See Also:
- Constant Field Values
-
UNAUTHORIZED_USER
public static final String UNAUTHORIZED_USER
- See Also:
- Constant Field Values
-
port
protected final int port
-
server
protected final org.eclipse.jetty.server.Server server
-
context
protected org.eclipse.jetty.servlet.ServletContextHandler context
-
-
Method Detail
-
getPort
public int getPort()
-
publish
public void publish(javax.ws.rs.core.Application application)
-
publishPerRequestGroovyScript
public void publishPerRequestGroovyScript(String resourcePath, String name)
-
addFilter
public void addFilter(javax.servlet.Filter filter, String pathSpec)
-
addFilter
public void addFilter(Class<? extends javax.servlet.Filter> filterClass, String pathSpec)
-
resetFilter
public void resetFilter()
-
getContext
public org.eclipse.jetty.servlet.ServletContextHandler getContext()
- Returns:
- the context
-
resetFactories
public void resetFactories()
-
-