Codota Logo
Jetty9ServerCustomizers.jetty
Code IndexAdd Codota to your IDE (free)

How to use
jetty
method
in
cn.home1.oss.lib.webmvc.api.Jetty9ServerCustomizers

Best Java code snippets using cn.home1.oss.lib.webmvc.api.Jetty9ServerCustomizers.jetty (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.2.RELEASE

static void accessLog(final Environment environment,
 final ConfigurableEmbeddedServletContainer container) {
 final JettyEmbeddedServletContainerFactory jetty = jetty(container);
 if (jetty == null) {
  return;
 }
 String applicationName =
  environment.getProperty("spring.application.name", "$spring.application.name");
 jetty.addServerCustomizers(new AccessLog(applicationName));
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.1.RELEASE

static void accessLog(final Environment environment,
 final ConfigurableEmbeddedServletContainer container) {
 final JettyEmbeddedServletContainerFactory jetty = jetty(container);
 if (jetty == null) {
  return;
 }
 String applicationName =
  environment.getProperty("spring.application.name", "$spring.application.name");
 jetty.addServerCustomizers(new AccessLog(applicationName));
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.1.RELEASE

/**
 * 最后添加gzip.
 *
 * @param environment environment
 * @param container   container
 */
static void gzip( //
 final Environment environment, final ConfigurableEmbeddedServletContainer container //
) {
 final JettyEmbeddedServletContainerFactory jetty = jetty(container);
 final Boolean gzipEnabled =
  parseBoolean(environment.getProperty("spring.http.gzip.enabled", "false"));
 if (gzipEnabled && jetty != null) {
  jetty.addServerCustomizers(new Gzip());
 }
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.2.RELEASE

/**
 * 最后添加gzip.
 *
 * @param environment environment
 * @param container   container
 */
static void gzip( //
 final Environment environment, final ConfigurableEmbeddedServletContainer container //
) {
 final JettyEmbeddedServletContainerFactory jetty = jetty(container);
 final Boolean gzipEnabled =
  parseBoolean(environment.getProperty("spring.http.gzip.enabled", "false"));
 if (gzipEnabled && jetty != null) {
  jetty.addServerCustomizers(new Gzip());
 }
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.1.RELEASE

static void forwardedRequest(final Environment environment,
 final ConfigurableEmbeddedServletContainer container) {
 final JettyEmbeddedServletContainerFactory jetty = jetty(container);
 if (jetty != null) {
  jetty.addServerCustomizers(new ForwardedRequest());
 }
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.1.RELEASE

static void nullSessionIdManager(final Environment environment,
 final ConfigurableEmbeddedServletContainer container) {
 final JettyEmbeddedServletContainerFactory jetty = jetty(container);
 if (jetty != null) {
  jetty.addServerCustomizers(new NullSessionIdManager());
 }
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.1.RELEASE

static void hideServerInfo(final Environment environment,
 final ConfigurableEmbeddedServletContainer container) {
 final JettyEmbeddedServletContainerFactory jetty = jetty(container);
 if (jetty != null) {
  jetty.addServerCustomizers(new HideServerInfo());
 }
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.2.RELEASE

static void forwardedRequest(final Environment environment,
 final ConfigurableEmbeddedServletContainer container) {
 final JettyEmbeddedServletContainerFactory jetty = jetty(container);
 if (jetty != null) {
  jetty.addServerCustomizers(new ForwardedRequest());
 }
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.2.RELEASE

static void hideServerInfo(final Environment environment,
 final ConfigurableEmbeddedServletContainer container) {
 final JettyEmbeddedServletContainerFactory jetty = jetty(container);
 if (jetty != null) {
  jetty.addServerCustomizers(new HideServerInfo());
 }
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.2.RELEASE

static void nullSessionIdManager(final Environment environment,
 final ConfigurableEmbeddedServletContainer container) {
 final JettyEmbeddedServletContainerFactory jetty = jetty(container);
 if (jetty != null) {
  jetty.addServerCustomizers(new NullSessionIdManager());
 }
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.2.RELEASE

/**
 * see:
 * http://stackoverflow.com/questions/3539143/redirect-non-www-version-of-domain-to-www-in-jetty
 *
 * @param container container
 * @param host      host
 * @param root      root
 */
static void redirectRootDomainToHostRoot( //
 final ConfigurableEmbeddedServletContainer container, final String host, final String root //
) {
 final JettyEmbeddedServletContainerFactory jetty = jetty(container);
 if (jetty == null) {
  return;
 }
 jetty.addServerCustomizers(new RedirectToHostRoot(host, root));
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.1.RELEASE

/**
 * see:
 * http://stackoverflow.com/questions/3539143/redirect-non-www-version-of-domain-to-www-in-jetty
 *
 * @param container container
 * @param host      host
 * @param root      root
 */
static void redirectRootDomainToHostRoot( //
 final ConfigurableEmbeddedServletContainer container, final String host, final String root //
) {
 final JettyEmbeddedServletContainerFactory jetty = jetty(container);
 if (jetty == null) {
  return;
 }
 jetty.addServerCustomizers(new RedirectToHostRoot(host, root));
}
cn.home1.oss.lib.webmvc.apiJetty9ServerCustomizersjetty

Popular methods of Jetty9ServerCustomizers

  • connectorConnectionFactories
  • serverConnectionFactories

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • ImageIO (javax.imageio)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now