br.com.objectos.http.HttpRequestBuilderPojo Maven / Gradle / Ivy
package br.com.objectos.http;
import javax.annotation.Generated;
@Generated({
"br.com.objectos.pojo.compiler.PojoCompiler",
"br.com.objectos.pojo.plugin.StandardBuilderPropertyAction"
})
final class HttpRequestBuilderPojo implements HttpRequestBuilder, HttpRequestBuilder.HttpRequestBuilderSocket, HttpRequestBuilder.HttpRequestBuilderMethod, HttpRequestBuilder.HttpRequestBuilderPath, HttpRequestBuilder.HttpRequestBuilderProtocol {
private Socket socket;
private Method method;
private Path path;
private Protocol protocol;
public HttpRequestBuilderPojo() {
}
@Override
public HttpRequest build() {
return new HttpRequestPojo(this);
}
@Override
public HttpRequestBuilder.HttpRequestBuilderSocket socket(Socket socket) {
if (socket == null) {
throw new NullPointerException();
}
this.socket = socket;
return this;
}
Socket ___get___socket() {
return socket;
}
@Override
public HttpRequestBuilder.HttpRequestBuilderMethod method(Method method) {
if (method == null) {
throw new NullPointerException();
}
this.method = method;
return this;
}
Method ___get___method() {
return method;
}
@Override
public HttpRequestBuilder.HttpRequestBuilderPath path(Path path) {
if (path == null) {
throw new NullPointerException();
}
this.path = path;
return this;
}
Path ___get___path() {
return path;
}
@Override
public HttpRequestBuilder.HttpRequestBuilderProtocol protocol(Protocol protocol) {
if (protocol == null) {
throw new NullPointerException();
}
this.protocol = protocol;
return this;
}
Protocol ___get___protocol() {
return protocol;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy