congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MadvocRouter$ActionBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
MadvocRouter$ActionBuilder
in
jodd.madvoc

Best Java code snippets using jodd.madvoc.MadvocRouter$ActionBuilder (Showing top 9 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)
    .bind()
  .interceptor(EchoInterceptor.class, i->i.setPrefixIn("====> ")
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

/**
 * 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 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

/**
 * Starts with action registration i.e. route binding.
 */
public ActionBuilder route() {
  return new ActionBuilder();
}
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$ActionBuilder

Most used methods

  • path
    Defines HTTP method name and action path.
  • <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

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best plugins for Eclipse
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