com.google.apphosting.runtime.jetty.AutoValue_EE10SessionManagerHandler_Config Maven / Gradle / Ivy
package com.google.apphosting.runtime.jetty;
import java.util.Optional;
import javax.annotation.Generated;
import org.eclipse.jetty.ee10.servlet.ServletContextHandler;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_EE10SessionManagerHandler_Config extends EE10SessionManagerHandler.Config {
private final boolean enableSession;
private final boolean asyncPersistence;
private final Optional asyncPersistenceQueueName;
private final ServletContextHandler servletContextHandler;
private AutoValue_EE10SessionManagerHandler_Config(
boolean enableSession,
boolean asyncPersistence,
Optional asyncPersistenceQueueName,
ServletContextHandler servletContextHandler) {
this.enableSession = enableSession;
this.asyncPersistence = asyncPersistence;
this.asyncPersistenceQueueName = asyncPersistenceQueueName;
this.servletContextHandler = servletContextHandler;
}
@Override
public boolean enableSession() {
return enableSession;
}
@Override
public boolean asyncPersistence() {
return asyncPersistence;
}
@Override
public Optional asyncPersistenceQueueName() {
return asyncPersistenceQueueName;
}
@Override
public ServletContextHandler servletContextHandler() {
return servletContextHandler;
}
@Override
public String toString() {
return "Config{"
+ "enableSession=" + enableSession + ", "
+ "asyncPersistence=" + asyncPersistence + ", "
+ "asyncPersistenceQueueName=" + asyncPersistenceQueueName + ", "
+ "servletContextHandler=" + servletContextHandler
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof EE10SessionManagerHandler.Config) {
EE10SessionManagerHandler.Config that = (EE10SessionManagerHandler.Config) o;
return this.enableSession == that.enableSession()
&& this.asyncPersistence == that.asyncPersistence()
&& this.asyncPersistenceQueueName.equals(that.asyncPersistenceQueueName())
&& this.servletContextHandler.equals(that.servletContextHandler());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= enableSession ? 1231 : 1237;
h$ *= 1000003;
h$ ^= asyncPersistence ? 1231 : 1237;
h$ *= 1000003;
h$ ^= asyncPersistenceQueueName.hashCode();
h$ *= 1000003;
h$ ^= servletContextHandler.hashCode();
return h$;
}
static final class Builder extends EE10SessionManagerHandler.Config.Builder {
private boolean enableSession;
private boolean asyncPersistence;
private Optional asyncPersistenceQueueName = Optional.empty();
private ServletContextHandler servletContextHandler;
private byte set$0;
Builder() {
}
@Override
public EE10SessionManagerHandler.Config.Builder setEnableSession(boolean enableSession) {
this.enableSession = enableSession;
set$0 |= (byte) 1;
return this;
}
@Override
public EE10SessionManagerHandler.Config.Builder setAsyncPersistence(boolean asyncPersistence) {
this.asyncPersistence = asyncPersistence;
set$0 |= (byte) 2;
return this;
}
@Override
public EE10SessionManagerHandler.Config.Builder setAsyncPersistenceQueueName(String asyncPersistenceQueueName) {
this.asyncPersistenceQueueName = Optional.of(asyncPersistenceQueueName);
return this;
}
@Override
public EE10SessionManagerHandler.Config.Builder setServletContextHandler(ServletContextHandler servletContextHandler) {
if (servletContextHandler == null) {
throw new NullPointerException("Null servletContextHandler");
}
this.servletContextHandler = servletContextHandler;
return this;
}
@Override
public EE10SessionManagerHandler.Config build() {
if (set$0 != 3
|| this.servletContextHandler == null) {
StringBuilder missing = new StringBuilder();
if ((set$0 & 1) == 0) {
missing.append(" enableSession");
}
if ((set$0 & 2) == 0) {
missing.append(" asyncPersistence");
}
if (this.servletContextHandler == null) {
missing.append(" servletContextHandler");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_EE10SessionManagerHandler_Config(
this.enableSession,
this.asyncPersistence,
this.asyncPersistenceQueueName,
this.servletContextHandler);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy