All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.objectos.http.RouteBuilderPojo Maven / Gradle / Ivy

The newest version!
package br.com.objectos.http;

import javax.annotation.Generated;

@Generated({
    "br.com.objectos.pojo.compiler.PojoCompiler",
    "br.com.objectos.pojo.plugin.StandardBuilderPropertyAction"
})
final class RouteBuilderPojo implements RouteBuilder, RouteBuilder.RouteBuilderMethod, RouteBuilder.RouteBuilderSpec, RouteBuilder.RouteBuilderExecutor {
  private Method method;

  private PathSpec spec;

  private RouteExecutor executor;

  public RouteBuilderPojo() {
  }

  @Override
  public Route build() {
    return new RoutePojo(this);
  }

  @Override
  public RouteBuilder.RouteBuilderMethod method(Method method) {
    if (method == null) {
      throw new NullPointerException();
    }
    this.method = method;
    return this;
  }

  Method ___get___method() {
    return method;
  }

  @Override
  public RouteBuilder.RouteBuilderSpec spec(PathSpec spec) {
    if (spec == null) {
      throw new NullPointerException();
    }
    this.spec = spec;
    return this;
  }

  PathSpec ___get___spec() {
    return spec;
  }

  @Override
  public RouteBuilder.RouteBuilderExecutor executor(RouteExecutor executor) {
    if (executor == null) {
      throw new NullPointerException();
    }
    this.executor = executor;
    return this;
  }

  RouteExecutor ___get___executor() {
    return executor;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy