Tabnine Logo
MadvocRouter$ActionBuilder.path
Code IndexAdd Tabnine to your IDE (free)

How to use
path
method
in
jodd.madvoc.MadvocRouter$ActionBuilder

Best Java code snippets using jodd.madvoc.MadvocRouter$ActionBuilder.path (Showing top 8 results out of 315)

origin: oblac/jodd

.start(madvoc -> madvoc
  .route()
    .path("/hello")
    .mapTo(BooAction.class, "foo1")
    .bind()
  .route()
    .path("/world")
    .mapTo(BooAction.class, "foo2")
    .interceptBy(EchoInterceptor.class)
origin: oblac/jodd

  @Override
  public void start() {
    route()
      .path("/hello")
      .mapTo(BooAction.class, "foo1")
      .bind();
    route()
      .path("/world")
      .mapTo(BooAction.class, "foo2")
      .interceptBy(EchoInterceptor.class)
      .bind();
    interceptor(EchoInterceptor.class, i -> i.setPrefixIn("====> "));     // additional interceptor configuration
  }
}
origin: oblac/jodd

/**
 * Maps an OPTION path.
 */
public ActionBuilder options(final String path) {
  return new ActionBuilder().path(path).httpMethod("OPTIONS");
}
origin: oblac/jodd

/**
 * Maps a PUT path.
 */
public ActionBuilder put(final String path) {
  return new ActionBuilder().path(path).httpMethod("PUT");
}
/**
origin: oblac/jodd

/**
 * Maps a GET path.
 */
public ActionBuilder get(final String path) {
  return new ActionBuilder().path(path).httpMethod("GET");
}
/**
origin: oblac/jodd

/**
 * Defines HTTP method name and action path.
 * @see #path(String)
 */
public ActionBuilder path(final String method, final String path) {
  this.method = method;
  return path(path);
}
origin: oblac/jodd

/**
 * Maps a DELETE path.
 */
public ActionBuilder delete(final String path) {
  return new ActionBuilder().path(path).httpMethod("DELETE");
}
/**
origin: oblac/jodd

/**
 * Maps a POST path.
 */
public ActionBuilder post(final String path) {
  return new ActionBuilder().path(path).httpMethod("POST");
}
/**
jodd.madvocMadvocRouter$ActionBuilderpath

Javadoc

Defines action path.

Popular methods of MadvocRouter$ActionBuilder

  • <init>
  • bind
    Binds and finalize action runtime configuration.
  • httpMethod
    Defines HTTP method.
  • interceptBy
    Appends list of interceptors to the list of action interceptors.
  • mapTo

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Best IntelliJ plugins
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