congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
cn.home1.oss.lib.webmvc.api
Code IndexAdd Tabnine to your IDE (free)

How to use cn.home1.oss.lib.webmvc.api

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

origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.1.RELEASE

 @Override
 public T fromToken(final String encrypted) {
  final String token = decrypt(encrypted, this.cipher);
  return this.token.fromToken(token);
 }
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.2.RELEASE

@Override
public T getCookie(final HttpServletRequest request) {
 final String token = this.getValue(request);
 return this.token.fromToken(token);
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.1.RELEASE

@Override
public String toToken(final T obj) {
 final String token = this.token.toToken(obj);
 return encrypt(token, this.cipher);
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.1.RELEASE

public static TypeSafeCookie<ResolvedError> buildResolvedErrorCookie( //
 final DomainResolver domainResolver, final ObjectMapper objectMapper) {
 final JsonToken<ResolvedError> jsonToken = new JsonToken<>(ResolvedError.class, objectMapper);
 final UrlEncodedToken<ResolvedError> urlEncodedToken = new UrlEncodedToken<>(jsonToken);
 final int maxAge = (int) DAYS.toSeconds(1L);
 return new TokenBasedCookie<>(domainResolver, false, maxAge, "resolved_error", false, urlEncodedToken);
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.2.RELEASE

 @Override
 public T setCookie( //
  final HttpServletRequest request, //
  final HttpServletResponse response, //
  final T obj //
 ) {
  final String token = this.token.toToken(obj);

  final String domain = this.domainResolver.resolveDomain(request);
  final Cookie cookie = TypeSafeCookie.buildCookie(domain, this.httpOnly, this.maxAge, this.name, this.secure, token);
  response.addCookie(cookie);
  return obj;
 }
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.1.RELEASE

@Override
public void clearCookie(final HttpServletRequest request, final HttpServletResponse response) {
 final String domain = this.domainResolver.resolveDomain(request);
 final Cookie cookie = TypeSafeCookie.buildCookie(domain, this.httpOnly, null, this.name, this.secure, null);
 response.addCookie(cookie);
}
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.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.2.RELEASE

 public static Pool smallPool() {
  return new Pool("1", "8", "60000");
 }
}
origin: cn.home1/oss-lib-errorhandle-spring-boot-1.4.2.RELEASE

public static TypeSafeCookie<ResolvedError> buildResolvedErrorCookie( //
 final DomainResolver domainResolver, final ObjectMapper objectMapper) {
 final JsonToken<ResolvedError> jsonToken = new JsonToken<>(ResolvedError.class, objectMapper);
 final UrlEncodedToken<ResolvedError> urlEncodedToken = new UrlEncodedToken<>(jsonToken);
 final int maxAge = (int) DAYS.toSeconds(1L);
 return new TokenBasedCookie<>(domainResolver, false, maxAge, "resolved_error", false, urlEncodedToken);
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.1.RELEASE

 @Override
 public T setCookie( //
  final HttpServletRequest request, //
  final HttpServletResponse response, //
  final T obj //
 ) {
  final String token = this.token.toToken(obj);

  final String domain = this.domainResolver.resolveDomain(request);
  final Cookie cookie = TypeSafeCookie.buildCookie(domain, this.httpOnly, this.maxAge, this.name, this.secure, token);
  response.addCookie(cookie);
  return obj;
 }
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.2.RELEASE

 @Override
 public T fromToken(final String encrypted) {
  final String token = decrypt(encrypted, this.cipher);
  return this.token.fromToken(token);
 }
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.1.RELEASE

@Override
public T getCookie(final HttpServletRequest request) {
 final String token = this.getValue(request);
 return this.token.fromToken(token);
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.2.RELEASE

@Override
public String toToken(final T obj) {
 final String token = this.token.toToken(obj);
 return encrypt(token, this.cipher);
}
origin: cn.home1/oss-lib-webmvc-spring-boot-1.4.2.RELEASE

@Override
public void clearCookie(final HttpServletRequest request, final HttpServletResponse response) {
 final String domain = this.domainResolver.resolveDomain(request);
 final Cookie cookie = TypeSafeCookie.buildCookie(domain, this.httpOnly, null, this.name, this.secure, null);
 response.addCookie(cookie);
}
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 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 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

 public static Pool smallPool() {
  return new Pool("1", "8", "60000");
 }
}
cn.home1.oss.lib.webmvc.api

Most used classes

  • TokenBasedCookie
  • DomainResolver
    Created by zhanghaolun on 16/8/18.
  • Jetty9ServerCustomizers$AccessLog
  • Jetty9ServerCustomizers$ForwardedRequest
  • Jetty9ServerCustomizers$Gzip
  • Jetty9ServerCustomizers$NullSessionIdManager,
  • Jetty9ServerCustomizers$Pool,
  • Jetty9ServerCustomizers$RedirectToHostRoot,
  • Jetty9ServerCustomizers,
  • JsonToken,
  • RequestResolver,
  • SecureToken,
  • TypeSafeCookie,
  • TypeSafeToken,
  • UrlEncodedToken
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now