org.sonatype.tests.http.server.jetty.impl
Class JettyProxyProvider
java.lang.Object
org.sonatype.tests.http.server.jetty.impl.JettyServerProvider
org.sonatype.tests.http.server.jetty.impl.JettyProxyProvider
- All Implemented Interfaces:
- ServerProvider
public class JettyProxyProvider
- extends JettyServerProvider
- Author:
- Benjamin Hanzelmann
Methods inherited from class org.sonatype.tests.http.server.jetty.impl.JettyServerProvider |
addBehaviour, addCertificate, addDefaultServices, addServlet, addUser, connector, createServer, getPort, getSecurityHandler, getServer, getUrl, getWebappContext, initServer, setPort, setSecurityHandler, setSSL, setWebappContext, sslConnector, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JettyProxyProvider
public JettyProxyProvider()
throws Exception
- Throws:
Exception
JettyProxyProvider
public JettyProxyProvider(String user,
String pw)
throws Exception
- Throws:
Exception
addAuthentication
public void addAuthentication(String pathSpec,
String authName)
- Description copied from interface:
ServerProvider
- Add authentication handler to the given pathspec.
- Specified by:
addAuthentication
in interface ServerProvider
- Overrides:
addAuthentication
in class JettyServerProvider
- Parameters:
pathSpec
- e.g. "/path/*"authName
- e.g. BASIC, DIGEST
initWebappContext
protected void initWebappContext(org.eclipse.jetty.server.Server s)
throws URISyntaxException
- Overrides:
initWebappContext
in class JettyServerProvider
- Throws:
URISyntaxException
Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.