org.everrest.assured
Class JettyHttpServer

java.lang.Object
  extended by org.everrest.assured.JettyHttpServer

public class JettyHttpServer
extends Object


Field Summary
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
           
protected  org.eclipse.jetty.server.Server server
           
static String UNAUTHORIZED_USER
           
 
Constructor Summary
JettyHttpServer()
           
JettyHttpServer(int port)
           
 
Method Summary
protected  String getContextPath()
           
protected  EventListener[] getEventListeners()
           
 int getPort()
           
 org.everrest.core.tools.ResourceLauncher getResourceLauncher()
           
 String getRestUri()
           
 String getRestUri(boolean secure)
           
 org.everrest.core.impl.EnvironmentContext getSecureEnvironment()
           
protected  String getSecureRestPath()
           
protected  org.eclipse.jetty.security.SecurityHandler getSecurityHandler()
           
 org.everrest.core.impl.EnvironmentContext getUnsecureEnvironment()
           
protected  void initParams(Map<String,String> params)
           
 boolean isRunning()
           
 boolean isStarted()
           
 boolean isStopped()
           
 void resetFactories()
           
protected  void setContextAttributes(org.eclipse.jetty.servlet.ServletContextHandler context)
           
 void setFactories(List<org.everrest.core.ObjectFactory<org.everrest.core.resource.AbstractResourceDescriptor>> factories)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected org.eclipse.jetty.servlet.ServletContextHandler context

port

protected final int port

server

protected final org.eclipse.jetty.server.Server server

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
Constructor Detail

JettyHttpServer

public JettyHttpServer()

JettyHttpServer

public JettyHttpServer(int port)
Method Detail

getPort

public int getPort()

start

public void start()

setFactories

public void setFactories(List<org.everrest.core.ObjectFactory<org.everrest.core.resource.AbstractResourceDescriptor>> factories)

resetFactories

public void resetFactories()

getResourceLauncher

public org.everrest.core.tools.ResourceLauncher getResourceLauncher()

stop

public void stop()

isStopped

public boolean isStopped()

isRunning

public boolean isRunning()

isStarted

public boolean isStarted()

getContextPath

protected String getContextPath()

setContextAttributes

protected void setContextAttributes(org.eclipse.jetty.servlet.ServletContextHandler context)

getEventListeners

protected EventListener[] getEventListeners()

getSecurityHandler

protected org.eclipse.jetty.security.SecurityHandler getSecurityHandler()

getSecureRestPath

protected String getSecureRestPath()

getRestUri

public String getRestUri(boolean secure)

getRestUri

public String getRestUri()

initParams

protected void initParams(Map<String,String> params)

getUnsecureEnvironment

public org.everrest.core.impl.EnvironmentContext getUnsecureEnvironment()

getSecureEnvironment

public org.everrest.core.impl.EnvironmentContext getSecureEnvironment()


Copyright © 2012. All Rights Reserved.