org.neo4j.server.web
Class Jetty6WebServer

java.lang.Object
  extended by org.neo4j.server.web.Jetty6WebServer
All Implemented Interfaces:
WebServer

public class Jetty6WebServer
extends Object
implements WebServer


Field Summary
static String DEFAULT_ADDRESS
           
static int DEFAULT_PORT
           
 
Constructor Summary
Jetty6WebServer(org.neo4j.kernel.logging.Logging logging)
           
 
Method Summary
 void addExecutionLimitFilter(int timeout, org.neo4j.kernel.guard.Guard guard)
          Please use instead, this will be removed in version 1.10
 void addFilter(javax.servlet.Filter filter, String pathSpec)
           
 void addJAXRSClasses(List<String> classNames, String mountPoint, Collection<org.neo4j.server.plugins.Injectable<?>> injectables)
           
 void addJAXRSPackages(List<String> packageNames, String mountPoint, Collection<org.neo4j.server.plugins.Injectable<?>> injectables)
           
 void addStaticContent(String contentLocation, String serverMountPoint)
           
 org.mortbay.jetty.Server getJetty()
           
 void init()
           
 void invokeDirectly(String targetPath, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void removeFilter(javax.servlet.Filter filter, String pathSpec)
           
 void removeJAXRSClasses(List<String> classNames, String serverMountPoint)
           
 void removeJAXRSPackages(List<String> packageNames, String serverMountPoint)
           
 void removeStaticContent(String contentLocation, String serverMountPoint)
           
 void setAddress(String addr)
           
 void setDefaultInjectables(Collection<InjectableProvider<?>> defaultInjectables)
           
 void setEnableHttps(boolean enable)
           
 void setHttpLoggingConfiguration(File logbackConfigFile)
           
 void setHttpsCertificateInformation(KeyStoreInformation config)
           
 void setHttpsPort(int portNo)
           
 void setMaxThreads(int maxThreads)
           
 void setPort(int portNo)
           
 void setWadlEnabled(boolean wadlEnabled)
           
 void start()
           
protected  void startJetty()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_ADDRESS

public static final String DEFAULT_ADDRESS
See Also:
Constant Field Values
Constructor Detail

Jetty6WebServer

public Jetty6WebServer(org.neo4j.kernel.logging.Logging logging)
Method Detail

init

public void init()
Specified by:
init in interface WebServer

start

public void start()
Specified by:
start in interface WebServer

stop

public void stop()
Specified by:
stop in interface WebServer

setPort

public void setPort(int portNo)
Specified by:
setPort in interface WebServer

setAddress

public void setAddress(String addr)
Specified by:
setAddress in interface WebServer

setMaxThreads

public void setMaxThreads(int maxThreads)
Specified by:
setMaxThreads in interface WebServer

addJAXRSPackages

public void addJAXRSPackages(List<String> packageNames,
                             String mountPoint,
                             Collection<org.neo4j.server.plugins.Injectable<?>> injectables)
Specified by:
addJAXRSPackages in interface WebServer

addJAXRSClasses

public void addJAXRSClasses(List<String> classNames,
                            String mountPoint,
                            Collection<org.neo4j.server.plugins.Injectable<?>> injectables)
Specified by:
addJAXRSClasses in interface WebServer

setWadlEnabled

public void setWadlEnabled(boolean wadlEnabled)
Specified by:
setWadlEnabled in interface WebServer

setDefaultInjectables

public void setDefaultInjectables(Collection<InjectableProvider<?>> defaultInjectables)
Specified by:
setDefaultInjectables in interface WebServer

removeJAXRSPackages

public void removeJAXRSPackages(List<String> packageNames,
                                String serverMountPoint)
Specified by:
removeJAXRSPackages in interface WebServer

removeJAXRSClasses

public void removeJAXRSClasses(List<String> classNames,
                               String serverMountPoint)
Specified by:
removeJAXRSClasses in interface WebServer

addFilter

public void addFilter(javax.servlet.Filter filter,
                      String pathSpec)
Specified by:
addFilter in interface WebServer

removeFilter

public void removeFilter(javax.servlet.Filter filter,
                         String pathSpec)
Specified by:
removeFilter in interface WebServer

addStaticContent

public void addStaticContent(String contentLocation,
                             String serverMountPoint)
Specified by:
addStaticContent in interface WebServer

removeStaticContent

public void removeStaticContent(String contentLocation,
                                String serverMountPoint)
Specified by:
removeStaticContent in interface WebServer

invokeDirectly

public void invokeDirectly(String targetPath,
                           javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws IOException,
                           javax.servlet.ServletException
Specified by:
invokeDirectly in interface WebServer
Throws:
IOException
javax.servlet.ServletException

setHttpLoggingConfiguration

public void setHttpLoggingConfiguration(File logbackConfigFile)
Specified by:
setHttpLoggingConfiguration in interface WebServer

setEnableHttps

public void setEnableHttps(boolean enable)
Specified by:
setEnableHttps in interface WebServer

setHttpsPort

public void setHttpsPort(int portNo)
Specified by:
setHttpsPort in interface WebServer

setHttpsCertificateInformation

public void setHttpsCertificateInformation(KeyStoreInformation config)
Specified by:
setHttpsCertificateInformation in interface WebServer

getJetty

public org.mortbay.jetty.Server getJetty()

startJetty

protected void startJetty()

addExecutionLimitFilter

public void addExecutionLimitFilter(int timeout,
                                    org.neo4j.kernel.guard.Guard guard)
Description copied from interface: WebServer
Please use instead, this will be removed in version 1.10

Specified by:
addExecutionLimitFilter in interface WebServer


Copyright © 2002-2014 The Neo4j Graph Database Project. All Rights Reserved.