public class JettyHttpServer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ADMIN_USER_NAME |
static String |
ADMIN_USER_PASSWORD |
protected org.eclipse.jetty.servlet.ServletContextHandler |
context |
static String |
MANAGER_USER_NAME |
static String |
MANAGER_USER_PASSWORD |
protected int |
port |
static String |
SECURE_PATH |
static String |
SECURE_PATH_SPEC |
static String |
SECURE_REST |
protected org.eclipse.jetty.server.Server |
server |
static String |
UNAUTHORIZED_USER |
static String |
UNSECURE_PATH_SPEC |
static String |
UNSECURE_REST |
| Constructor and Description |
|---|
JettyHttpServer() |
JettyHttpServer(int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(Class<? extends javax.servlet.Filter> filterClass,
String pathSpec) |
void |
addFilter(javax.servlet.Filter filter,
String pathSpec) |
void |
addUser(String userName,
org.eclipse.jetty.util.security.Credential credential,
String[] roles) |
org.eclipse.jetty.servlet.ServletContextHandler |
getContext() |
int |
getPort() |
void |
publish(javax.ws.rs.core.Application application) |
void |
publishPerRequestGroovyScript(String resourcePath,
String name) |
void |
resetFactories() |
void |
resetFilter() |
void |
start() |
void |
stop() |
public static final String UNSECURE_REST
public static final String UNSECURE_PATH_SPEC
public static final String SECURE_PATH
public static final String SECURE_REST
public static final String SECURE_PATH_SPEC
public static final String ADMIN_USER_NAME
public static final String ADMIN_USER_PASSWORD
public static final String MANAGER_USER_NAME
public static final String MANAGER_USER_PASSWORD
public static final String UNAUTHORIZED_USER
protected final int port
protected final org.eclipse.jetty.server.Server server
protected org.eclipse.jetty.servlet.ServletContextHandler context
public JettyHttpServer()
public JettyHttpServer(int port)
public int getPort()
public void addUser(String userName, org.eclipse.jetty.util.security.Credential credential, String[] roles)
public void publish(javax.ws.rs.core.Application application)
public void publishPerRequestGroovyScript(String resourcePath, String name)
public void addFilter(javax.servlet.Filter filter,
String pathSpec)
public void resetFilter()
public org.eclipse.jetty.servlet.ServletContextHandler getContext()
public void resetFactories()
Copyright © 2012–2017 Codenvy, S.A.. All rights reserved.