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

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

There is a newer version: 0.2.1
Show newest version
package br.com.objectos.http;

import br.com.objectos.testable.Equality;
import br.com.objectos.testable.Tester;
import javax.annotation.Generated;

@Generated({
    "br.com.objectos.pojo.compiler.PojoCompiler",
    "br.com.objectos.pojo.plugin.StandardPojoPropertyAction",
    "br.com.objectos.testable.TestablePlugin"
})
final class HttpRequestPojo extends HttpRequest {
  private static final Tester ___TESTER___ = Tester.of(HttpRequest.class)
      .add("socket", o -> o.socket())
      .add("method", o -> o.method())
      .add("path", o -> o.path())
      .add("protocol", o -> o.protocol())
      .build();

  private final Socket socket;

  private final Method method;

  private final Path path;

  private final Protocol protocol;

  public HttpRequestPojo(HttpRequestBuilderPojo builder) {
    super();
    socket = builder.___get___socket();
    method = builder.___get___method();
    path = builder.___get___path();
    protocol = builder.___get___protocol();
  }

  @Override
  public Equality isEqualTo(Object that) {
    return ___TESTER___.test(this, that);
  }

  @Override
  Socket socket() {
    return socket;
  }

  @Override
  Method method() {
    return method;
  }

  @Override
  Path path() {
    return path;
  }

  @Override
  Protocol protocol() {
    return protocol;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy