public class ServletTester extends ContainerLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Constructor and Description |
---|
ServletTester() |
ServletTester(String ctxPath) |
ServletTester(String contextPath,
int options) |
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public ServletTester()
public ServletTester(String ctxPath)
public ServletTester(String contextPath, int options)
public Server getServer()
public LocalConnector getConnector()
public void setVirtualHosts(String[] vhosts)
public void addVirtualHosts(String[] virtualHosts)
public ServletHolder addServlet(String className, String pathSpec)
public ServletHolder addServlet(Class<? extends Servlet> servlet, String pathSpec)
public void addServlet(ServletHolder servlet, String pathSpec)
public void addFilter(FilterHolder holder, String pathSpec, EnumSet<DispatcherType> dispatches)
public FilterHolder addFilter(Class<? extends Filter> filterClass, String pathSpec, EnumSet<DispatcherType> dispatches)
public FilterHolder addFilter(String filterClass, String pathSpec, EnumSet<DispatcherType> dispatches)
public Enumeration<String> getAttributeNames()
public Attributes getAttributes()
public String getContextPath()
public Enumeration<String> getInitParameterNames()
public void removeAttribute(String name)
public void setContextPath(String contextPath)
public Resource getBaseResource()
public String getResourceBase()
public void setResourceBase(String resourceBase)
public ServletContextHandler getContext()
public String getResponses(String request, long idleFor, TimeUnit units) throws Exception
Exception
public ByteBuffer getResponses(ByteBuffer request) throws Exception
Exception
public ByteBuffer getResponses(ByteBuffer requestsBuffer, long idleFor, TimeUnit units) throws Exception
Exception
public String createConnector(boolean localhost) throws Exception
Exception
public LocalConnector createLocalConnector()
Copyright © 1995-2015 Webtide. All Rights Reserved.