Codota Logo
ReverseProxyMapDSL
Code IndexAdd Codota to your IDE (free)

How to use
ReverseProxyMapDSL
in
org.rapidoid.reverseproxy

Best Java code snippets using org.rapidoid.reverseproxy.ReverseProxyMapDSL (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: rapidoid/rapidoid

public ReverseProxyMapDSL to(String... upstreams) {
  return to(U.list(upstreams));
}
origin: rapidoid/rapidoid

public ReverseProxyMapDSL map(String uriPrefix) {
  return new ReverseProxyMapDSL(uriPrefix);
}
origin: rapidoid/rapidoid

public ReverseProxy add() {
  return addTo(On.setup());
}
origin: org.rapidoid/rapidoid-web

private void applyProxyEntry(String uri, ProxyConfig config) {
  ReverseProxyMapDSL proxy = Reverse.proxy(uri);
  if (config.upstreams != null) proxy.to(config.upstreams);
  if (config.cacheTTL != null) proxy.cacheTTL(config.cacheTTL);
  if (config.cacheCapacity != null) proxy.cacheCapacity(config.cacheCapacity);
  if (config.roles != null) {
    proxy.roles(config.roles);
    App.boot().auth();
  }
  proxy.add();
}
origin: rapidoid/rapidoid

public ReverseProxy addTo(Setup setup) {
  Log.info("!Reverse proxy mapping", "!uriPrefix", uriPrefix, "!upstreams", upstreams);
  ReverseProxy proxy = createReverseProxy();
  U.must(uriPrefix.startsWith("/"), "The URI prefix must start with '/'");
  String path = uriPrefix.equals("/") ? "/*" : uriPrefix + "/*";
  OnRoute route = setup.any(path);
  if (roles != null) route.roles(roles);
  if (cacheTTL != null) route.cacheTTL(cacheTTL);
  if (cacheCapacity != null) route.cacheCapacity(cacheCapacity);
  route.serve(proxy);
  return proxy;
}
origin: org.rapidoid/rapidoid-http-server

public ReverseProxy addTo(Setup setup) {
  Log.info("!Reverse proxy mapping", "!uriPrefix", uriPrefix, "!upstreams", upstreams);
  ReverseProxy proxy = createReverseProxy();
  U.must(uriPrefix.startsWith("/"), "The URI prefix must start with '/'");
  String path = uriPrefix.equals("/") ? "/*" : uriPrefix + "/*";
  OnRoute route = setup.any(path);
  if (roles != null) route.roles(roles);
  if (cacheTTL != null) route.cacheTTL(cacheTTL);
  if (cacheCapacity != null) route.cacheCapacity(cacheCapacity);
  route.serve(proxy);
  return proxy;
}
origin: org.rapidoid/rapidoid-http-server

public ReverseProxyMapDSL to(String... upstreams) {
  return to(U.list(upstreams));
}
origin: org.rapidoid/rapidoid-http-server

public ReverseProxyMapDSL map(String uriPrefix) {
  return new ReverseProxyMapDSL(uriPrefix);
}
origin: org.rapidoid/rapidoid-http-server

public ReverseProxy add() {
  return addTo(On.setup());
}
org.rapidoid.reverseproxyReverseProxyMapDSL

Most used methods

  • to
  • <init>
  • addTo
  • createReverseProxy
  • add
  • cacheCapacity
  • cacheTTL
  • roles

Popular in Java

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • JFrame (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Option (scala)
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