Package org.eclipse.jetty.webapp

Examples of org.eclipse.jetty.webapp.AbstractConfiguration


  /**
   * Create a configuration object that adds error handlers
   * @return a configuration object for adding error pages
   */
  private Configuration getErrorPageConfiguration() {
    return new AbstractConfiguration() {
      @Override
      public void configure(WebAppContext context) throws Exception {
        ErrorHandler errorHandler = context.getErrorHandler();
        addJettyErrorPages(errorHandler, getErrorPages());
      }
View Full Code Here


  /**
   * Create a configuration object that adds mime type mappings
   * @return a configuration object for adding mime type mappings
   */
  private Configuration getMimeTypeConfiguration() {
    return new AbstractConfiguration() {
      @Override
      public void configure(WebAppContext context) throws Exception {
        MimeTypes mimeTypes = context.getMimeTypes();
        for (MimeMappings.Mapping mapping : getMimeMappings()) {
          mimeTypes.addMimeMapping(mapping.getExtension(),
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.webapp.AbstractConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.