org.sonatype.tests.http.server.jetty.impl
Class JettyProxyProvider

java.lang.Object
  extended by org.sonatype.tests.http.server.jetty.impl.JettyServerProvider
      extended by org.sonatype.tests.http.server.jetty.impl.JettyProxyProvider
All Implemented Interfaces:
ServerProvider

public class JettyProxyProvider
extends JettyServerProvider

Author:
Benjamin Hanzelmann

Nested Class Summary
 class JettyProxyProvider.ProxyAuthHandler
           
 
Nested classes/interfaces inherited from class org.sonatype.tests.http.server.jetty.impl.JettyServerProvider
JettyServerProvider.CertificateHolder, JettyServerProvider.CustomTrustManager
 
Field Summary
 
Fields inherited from class org.sonatype.tests.http.server.jetty.impl.JettyServerProvider
port, server, ssl
 
Constructor Summary
JettyProxyProvider()
           
JettyProxyProvider(String user, String pw)
           
 
Method Summary
 void addAuthentication(String pathSpec, String authName)
          Add authentication handler to the given pathspec.
protected  void initWebappContext(org.eclipse.jetty.server.Server s)
           
 
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
 

Constructor Detail

JettyProxyProvider

public JettyProxyProvider()
                   throws Exception
Throws:
Exception

JettyProxyProvider

public JettyProxyProvider(String user,
                          String pw)
                   throws Exception
Throws:
Exception
Method Detail

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.