wms-winstone-1.0.5

positeBuilder
{
  protected int port = 8080;
  protected String address = null;
  protected Boolean hostnameLookups = Boolean.FALSE;
  
  public HttpListenerConfigurationBuilder(ServerConfigurationBuilder builder)
  {
    super(builder);
  }
  
  public HttpListenerConfigurationBuilder setAddress(int port, String address)
  {
    this.port = port;
    this.address = address;
    return this;
  }
  
  public final HttpListenerConfigurationBuilder setPort(int port)
  {
    this.port = port;
    return this;
  }
  
  public final HttpListenerConfigurationBuilder setAddress(String address)
  {
    this.address = address;
    return this;
  }
  
  public final HttpListenerConfigurationBuilder enableHostnameLookups()
  {
    hostnameLookups = Boolean.TRUE;
    return this;
  }
  
  public final HttpListenerConfigurationBuilder disableHostnameLookups()
  {
    hostnameLookups = Boolean.FALSE;
    return this;
  }
  
  public ServerConfigurationBuilder build()
  {
    return builder.setHttpListenerConfiguration(new HttpListenerConfiguration(port, address, hostnameLookups));
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.builder.HttpListenerConfigurationBuilder
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config.builder;

import java.io.File;
import net.winstone.config.HttpsListenerConfiguration;

public class HttpsListenerConfigurationBuilder
  extends CompositeBuilder
{
  protected int port = -1;
  protected String address = null;
  protected Boolean hostnameLookups = Boolean.FALSE;
  protected File keyStore = null;
  protected String keyStorePassword = null;
  protected String keyManagerType = null;
  protected Boolean verifyClient = Boolean.FALSE;
  protected File certificate = null;
  protected File privateKey = null;
  
  public HttpsListenerConfigurationBuilder(ServerConfigurationBuilder builder)
  {
    super(builder);
  }
  
  public HttpsListenerConfigurationBuilder setAddress(int port, String address)
  {
    this.port = port;
    this.address = address;
    return this;
  }
  
  public final HttpsListenerConfigurationBuilder setPort(int port)
  {
    this.port = port;
    return this;
  }
  
  public final HttpsListenerConfigurationBuilder setAddress(String address)
  {
    this.address = address;
    return this;
  }
  
  public final HttpsListenerConfigurationBuilder enableHostnameLookups()
  {
    hostnameLookups = Boolean.TRUE;
    return this;
  }
  
  public final HttpsListenerConfigurationBuilder disableHostnameLookups()
  {
    hostnameLookups = Boolean.FALSE;
    return this;
  }
  
  public final HttpsListenerConfigurationBuilder setKeyStore(File keyStore)
  {
    this.keyStore = keyStore;
    return this;
  }
  
  public final HttpsListenerConfigurationBuilder setKeyStorePassword(String keyStorePassword)
  {
    this.keyStorePassword = keyStorePassword;
    return this;
  }
  
  public final HttpsListenerConfigurationBuilder setKeyManagerType(String keyManagerType)
  {
    this.keyManagerType = keyManagerType;
    return this;
  }
  
  public final HttpsListenerConfigurationBuilder setVerifyClient(Boolean verifyClient)
  {
    this.verifyClient = verifyClient;
    return this;
  }
  
  public final HttpsListenerConfigurationBuilder setCertificate(File certificate)
  {
    this.certificate = certificate;
    return this;
  }
  
  public final HttpsListenerConfigurationBuilder setPrivateKey(File privateKey)
  {
    this.privateKey = privateKey;
    return this;
  }
  
  public ServerConfigurationBuilder build()
  {
    return builder.setHttpsListenerConfiguration(new HttpsListenerConfiguration(port, keyManagerType, hostnameLookups, keyStore, keyStorePassword, keyManagerType, verifyClient, certificate, privateKey));
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.builder.HttpsListenerConfigurationBuilder
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config.builder;

import java.util.ArrayList;
import net.winstone.config.RealmConfiguration;
import net.winstone.config.RealmFileConfiguration;
import net.winstone.config.RealmJDBCConfiguration;
import net.winstone.config.RealmMemoryConfiguration;
import net.winstone.core.authentication.realm.ArgumentsRealm;

public class RealmConfigurationBuilder
  extends CompositeBuilder
{
  protected RealmConfiguration realmConfiguration;
  protected RealmMemoryConfiguration realmMemoryConfiguration;
  protected RealmFileConfiguration realmFileConfiguration;
  protected RealmJDBCConfiguration realmJDBCConfiguration;
  
  public RealmConfigurationBuilder(ServerConfigurationBuilder builder)
  {
    super(builder);
    realmMemoryConfiguration = new RealmMemoryConfiguration(ArgumentsRealm.class.getName(), new ArrayList());
    realmConfiguration = realmMemoryConfiguration;
  }
  
  public RealmFileConfigurationBuilder setRealmFileConfiguration()
  {
    return new RealmFileConfigurationBuilder(this);
  }
  
  public RealmJDBCConfigurationBuilder setRealmJDBCConfiguration()
  {
    return new RealmJDBCConfigurationBuilder(this);
  }
  
  public RealmMemoryConfigurationBuilder setRealmMemoryConfiguration()
  {
    return new RealmMemoryConfigurationBuilder(this);
  }
  
  public ServerConfigurationBuilder build()
  {
    return builder.setRealmConfiguration(realmConfiguration).setRealmMemoryConfiguration(realmMemoryConfiguration).setRealmFileConfiguration(realmFileConfiguration).setRealmJDBCConfiguration(realmJDBCConfiguration);
  }
  
  RealmConfigurationBuilder setRealmConfiguration(RealmMemoryConfiguration configuration)
  {
    realmMemoryConfiguration = configuration;
    realmConfiguration = configuration;
    return this;
  }
  
  RealmConfigurationBuilder setRealmConfiguration(RealmFileConfiguration configuration)
  {
    realmFileConfiguration = configuration;
    realmConfiguration = configuration;
    return this;
  }
  
  RealmConfigurationBuilder setRealmConfiguration(RealmJDBCConfiguration configuration)
  {
    realmJDBCConfiguration = configuration;
    realmConfiguration = configuration;
    return this;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.builder.RealmConfigurationBuilder
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config.builder;

import java.io.File;
import net.winstone.config.RealmFileConfiguration;
import net.winstone.core.authentication.realm.FileRealm;

public class RealmFileConfigurationBuilder
{
  private RealmConfigurationBuilder builder;
  private File configFile = null;
  
  public RealmFileConfigurationBuilder(RealmConfigurationBuilder builder)
  {
    this.builder = builder;
  }
  
  public ServerConfigurationBuilder build()
  {
    return builder.setRealmConfiguration(new RealmFileConfiguration(FileRealm.class.getName(), configFile)).build();
  }
  
  public RealmFileConfigurationBuilder setConfigFile(File configFile)
  {
    this.configFile = configFile;
    return this;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.builder.RealmFileConfigurationBuilder
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config.builder;

import net.winstone.config.RealmJDBCConfiguration;
import net.winstone.core.authentication.realm.JDBCRealm;

public class RealmJDBCConfigurationBuilder
{
  private RealmConfigurationBuilder builder;
  private String driver;
  private String url;
  private String user;
  private String password;
  private String userRel = "web_users";
  private String userNameColunm = "username";
  private String userCredColumn = "credential";
  private String userRoleRel = "web_user_roles";
  private String roleNameCol = "rolename";
  
  public RealmJDBCConfigurationBuilder(RealmConfigurationBuilder builder)
  {
    this.builder = builder;
  }
  
  public ServerConfigurationBuilder build()
  {
    return builder.setRealmConfiguration(new RealmJDBCConfiguration(JDBCRealm.class.getName(), driver, url, user, password, userRel, userNameColunm, userCredColumn, userRoleRel, roleNameCol)).build();
  }
  
  public RealmJDBCConfigurationBuilder setDriver(String driver)
  {
    this.driver = driver;
    return this;
  }
  
  public RealmJDBCConfigurationBuilder setUrl(String url)
  {
    this.url = url;
    return this;
  }
  
  public RealmJDBCConfigurationBuilder setUser(String user)
  {
    this.user = user;
    return this;
  }
  
  public RealmJDBCConfigurationBuilder setPassword(String password)
  {
    this.password = password;
    return this;
  }
  
  public RealmJDBCConfigurationBuilder setUserRel(String userRel)
  {
    this.userRel = userRel;
    return this;
  }
  
  public RealmJDBCConfigurationBuilder setUserNameColunm(String userNameColunm)
  {
    this.userNameColunm = userNameColunm;
    return this;
  }
  
  public RealmJDBCConfigurationBuilder setUserCredColumn(String userCredColumn)
  {
    this.userCredColumn = userCredColumn;
    return this;
  }
  
  public RealmJDBCConfigurationBuilder setUserRoleRel(String userRoleRel)
  {
    this.userRoleRel = userRoleRel;
    return this;
  }
  
  public RealmJDBCConfigurationBuilder setRoleNameCol(String roleNameCol)
  {
    this.roleNameCol = roleNameCol;
    return this;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.builder.RealmJDBCConfigurationBuilder
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config.builder;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import net.winstone.config.RealmMemoryConfiguration;
import net.winstone.config.RealmUserConfiguration;
import net.winstone.core.authentication.realm.ArgumentsRealm;

public class RealmMemoryConfigurationBuilder
{
  private RealmConfigurationBuilder builder;
  private List<RealmUserConfiguration> users = new ArrayList();
  
  public RealmMemoryConfigurationBuilder(RealmConfigurationBuilder builder)
  {
    this.builder = builder;
  }
  
  public ServerConfigurationBuilder build()
  {
    return builder.setRealmConfiguration(new RealmMemoryConfiguration(ArgumentsRealm.class.getName(), users)).build();
  }
  
  public RealmMemoryConfigurationBuilder add(String name, String password, String... roles)
  {
    users.add(new RealmUserConfiguration(name, password, Arrays.asList(roles)));
    return this;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.builder.RealmMemoryConfigurationBuilder
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config.builder;

import java.io.File;
import net.winstone.config.AccessLoggerConfiguration;
import net.winstone.config.Ajp13ListenerConfiguration;
import net.winstone.config.ClusterConfiguration;
import net.winstone.config.ControlConfiguration;
import net.winstone.config.DefaultServerConfiguration;
import net.winstone.config.HandlerConfiguration;
import net.winstone.config.HttpListenerConfiguration;
import net.winstone.config.HttpsListenerConfiguration;
import net.winstone.config.RealmConfiguration;
import net.winstone.config.RealmFileConfiguration;
import net.winstone.config.RealmJDBCConfiguration;
import net.winstone.config.RealmMemoryConfiguration;
import net.winstone.config.ServerConfiguration;
import net.winstone.config.SimpleAccessLoggerConfiguration;

public class ServerConfigurationBuilder
{
  private final DefaultServerConfiguration configuration;
  
  public ServerConfigurationBuilder()
  {
    configuration = new DefaultServerConfiguration();
    
    configuration.setControlConfiguration(null);
    configuration.setHttpListenerConfiguration(null);
    configuration.setHttpsListenerConfiguration(null);
    configuration.setAjp13ListenerConfiguration(null);
    configuration.setClusterConfiguration(null);
    configuration.setHandlerConfiguration(null);
    configuration.setAccessLoggerConfiguration(new AccessLoggerConfiguration());
    configuration.setSimpleAccessLoggerConfiguration(null);
    
    configuration.setUseServletReloading(Boolean.FALSE);
    configuration.setDirectoryListings(Boolean.TRUE);
    configuration.setUseInvoker(Boolean.TRUE);
    configuration.setInvokerPrefix("/servlet/");
    configuration.setSimulateModUniqueId(Boolean.FALSE);
    configuration.setUseSavedSessions(Boolean.FALSE);
    configuration.setMaxParamAllowed(10000);
    
    configuration.setPreferredClassLoader(null);
    
    configuration.setTempDirectory(null);
  }
  
  public ServerConfiguration build()
  {
    return configuration;
  }
  
  public ControlConfigurationBuilder addControlConfiguration()
  {
    return new ControlConfigurationBuilder(this);
  }
  
  public HttpListenerConfigurationBuilder addHttpListenerConfiguration()
  {
    return new HttpListenerConfigurationBuilder(this);
  }
  
  public HttpsListenerConfigurationBuilder addHttpsListenerConfiguration()
  {
    return new HttpsListenerConfigurationBuilder(this);
  }
  
  public Ajp13ListenerConfigurationBuilder addAjp13ListenerConfiguration()
  {
    return new Ajp13ListenerConfigurationBuilder(this);
  }
  
  public ClusterConfigurationBuilder addClusterConfiguration()
  {
    return new ClusterConfigurationBuilder(this);
  }
  
  public ServerConfigurationBuilder setUseServletReloading(Boolean useServletReloading)
  {
    configuration.setUseServletReloading(useServletReloading);
    return this;
  }
  
  public ServerConfigurationBuilder setDirectoryListings(Boolean directoryListings)
  {
    configuration.setDirectoryListings(directoryListings);
    return this;
  }
  
  public ServerConfigurationBuilder setUseInvoker(Boolean useInvoker)
  {
    configuration.setUseInvoker(useInvoker);
    return this;
  }
  
  public ServerConfigurationBuilder setInvokerPrefix(String invokerPrefix)
  {
    configuration.setInvokerPrefix(invokerPrefix);
    return this;
  }
  
  public ServerConfigurationBuilder setSimulateModUniqueId(Boolean simulateModUniqueId)
  {
    configuration.setSimulateModUniqueId(simulateModUniqueId);
    return this;
  }
  
  public ServerConfigurationBuilder setUseSavedSessions(Boolean useSavedSessions)
  {
    configuration.setUseSavedSessions(useSavedSessions);
    return this;
  }
  
  public ServerConfigurationBuilder setMaxParamAllowed(int maxParamAllowed)
  {
    configuration.setMaxParamAllowed(maxParamAllowed);
    return this;
  }
  
  public ServerConfigurationBuilder setPreferredClassLoader(String preferredClassLoader)
  {
    configuration.setPreferredClassLoader(preferredClassLoader);
    return this;
  }
  
  public RealmConfigurationBuilder setRealmConfiguration()
  {
    return new RealmConfigurationBuilder(this);
  }
  
  ServerConfigurationBuilder setControlConfiguration(ControlConfiguration controlConfiguration)
  {
    configuration.setControlConfiguration(controlConfiguration);
    return this;
  }
  
  ServerConfigurationBuilder setHttpListenerConfiguration(HttpListenerConfiguration httpListenerConfiguration)
  {
    configuration.setHttpListenerConfiguration(httpListenerConfiguration);
    return this;
  }
  
  ServerConfigurationBuilder setHttpsListenerConfiguration(HttpsListenerConfiguration httpsListenerConfiguration)
  {
    configuration.setHttpsListenerConfiguration(httpsListenerConfiguration);
    return this;
  }
  
  ServerConfigurationBuilder setAjp13ListenerConfiguration(Ajp13ListenerConfiguration ajp13ListenerConfiguration)
  {
    configuration.setAjp13ListenerConfiguration(ajp13ListenerConfiguration);
    return this;
  }
  
  ServerConfigurationBuilder setClusterConfiguration(ClusterConfiguration clusterConfiguration)
  {
    configuration.setClusterConfiguration(clusterConfiguration);
    return this;
  }
  
  ServerConfigurationBuilder setHandlerConfiguration(HandlerConfiguration handlerConfiguration)
  {
    configuration.setHandlerConfiguration(handlerConfiguration);
    return this;
  }
  
  ServerConfigurationBuilder setAccessLoggerConfiguration(AccessLoggerConfiguration accessLoggerConfiguration)
  {
    configuration.setAccessLoggerConfiguration(accessLoggerConfiguration);
    return this;
  }
  
  ServerConfigurationBuilder setSimpleAccessLoggerConfiguration(SimpleAccessLoggerConfiguration simpleAccessLoggerConfiguration)
  {
    configuration.setSimpleAccessLoggerConfiguration(simpleAccessLoggerConfiguration);
    return this;
  }
  
  ServerConfigurationBuilder setRealmConfiguration(RealmConfiguration realmConfiguration)
  {
    configuration.setRealmConfiguration(realmConfiguration);
    return this;
  }
  
  ServerConfigurationBuilder setRealmMemoryConfiguration(RealmMemoryConfiguration realmMemoryConfiguration)
  {
    configuration.setRealmMemoryConfiguration(realmMemoryConfiguration);
    return this;
  }
  
  ServerConfigurationBuilder setRealmFileConfiguration(RealmFileConfiguration realmFileConfiguration)
  {
    configuration.setRealmFileConfiguration(realmFileConfiguration);
    return this;
  }
  
  ServerConfigurationBuilder setRealmJDBCConfiguration(RealmJDBCConfiguration realmJDBCConfiguration)
  {
    configuration.setRealmJDBCConfiguration(realmJDBCConfiguration);
    return this;
  }
  
  ServerConfigurationBuilder setTempDirectory(File tempDirectory)
  {
    configuration.setTempDirectory(tempDirectory);
    return this;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.builder.ServerConfigurationBuilder
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config.builder;

import net.winstone.config.SimpleAccessLoggerConfiguration;

public class SimpleAccessLoggerConfigurationBuilder
  extends CompositeBuilder
{
  private String loggerFormat;
  private String loggerFilePattern;
  
  public SimpleAccessLoggerConfigurationBuilder(ServerConfigurationBuilder builder)
  {
    super(builder);
  }
  
  public ServerConfigurationBuilder build()
  {
    SimpleAccessLoggerConfiguration configuration = new SimpleAccessLoggerConfiguration(loggerFormat, loggerFilePattern);
    return builder.setAccessLoggerConfiguration(configuration).setSimpleAccessLoggerConfiguration(configuration);
  }
  
  public SimpleAccessLoggerConfigurationBuilder setLoggerFormat(String loggerFormat)
  {
    this.loggerFormat = loggerFormat;
    return this;
  }
  
  public SimpleAccessLoggerConfigurationBuilder setLoggerFilePattern(String loggerFilePattern)
  {
    this.loggerFilePattern = loggerFilePattern;
    return this;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.builder.SimpleAccessLoggerConfigurationBuilder
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

import java.io.Serializable;
import java.util.List;
import net.winstone.cluster.SimpleCluster;

public class ClusterConfiguration
  implements Serializable
{
  private static final long serialVersionUID = 7101861040958821946L;
  private Boolean useCluster = Boolean.FALSE;
  private String className = SimpleCluster.class.getName();
  private List<AddressConfiguration> nodes;
  
  public ClusterConfiguration(Boolean useCluster, String className, List<AddressConfiguration> nodes)
  {
    this.useCluster = useCluster;
    this.className = className;
    this.nodes = nodes;
  }
  
  final Boolean getUseCluster()
  {
    return useCluster;
  }
  
  final String getClassName()
  {
    return className;
  }
  
  final List<AddressConfiguration> getNodes()
  {
    return nodes;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.ClusterConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

public class ControlConfiguration
  extends AddressConfiguration
{
  private static final long serialVersionUID = -7265773222974448024L;
  
  public ControlConfiguration(int port, String address)
  {
    super(port, address);
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.ControlConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

import java.io.File;
import java.io.Serializable;

public class DefaultServerConfiguration
  implements ServerConfiguration, Serializable
{
  private static final long serialVersionUID = -5540953351305251467L;
  protected ControlConfiguration controlConfiguration;
  protected HttpListenerConfiguration httpListenerConfiguration;
  protected HttpsListenerConfiguration httpsListenerConfiguration;
  protected Ajp13ListenerConfiguration ajp13ListenerConfiguration;
  protected ClusterConfiguration clusterConfiguration;
  protected HandlerConfiguration handlerConfiguration;
  protected AccessLoggerConfiguration accessLoggerConfiguration;
  protected SimpleAccessLoggerConfiguration simpleAccessLoggerConfiguration;
  protected Boolean useServletReloading;
  protected Boolean directoryListings;
  protected Boolean useInvoker;
  protected String invokerPrefix;
  protected Boolean simulateModUniqueId;
  protected Boolean useSavedSessions;
  protected int maxParamAllowed;
  protected String preferredClassLoader;
  protected RealmConfiguration realmConfiguration;
  protected RealmMemoryConfiguration realmMemoryConfiguration;
  protected RealmFileConfiguration realmFileConfiguration;
  protected RealmJDBCConfiguration realmJDBCConfiguration;
  protected File tempDirectory;
  
  public ControlConfiguration getControlConfiguration()
  {
    return controlConfiguration;
  }
  
  public HttpListenerConfiguration getHttpListenerConfiguration()
  {
    return httpListenerConfiguration;
  }
  
  public HttpsListenerConfiguration getHttpsListenerConfiguration()
  {
    return httpsListenerConfiguration;
  }
  
  public Ajp13ListenerConfiguration getAjp13ListenerConfiguration()
  {
    return ajp13ListenerConfiguration;
  }
  
  public ClusterConfiguration getClusterConfiguration()
  {
    return clusterConfiguration;
  }
  
  public HandlerConfiguration getHandlerConfiguration()
  {
    return handlerConfiguration;
  }
  
  public AccessLoggerConfiguration getAccessLoggerConfiguration()
  {
    return accessLoggerConfiguration;
  }
  
  public SimpleAccessLoggerConfiguration getSimpleAccessLoggerConfiguration()
  {
    return simpleAccessLoggerConfiguration;
  }
  
  public Boolean getUseServletReloading()
  {
    return useServletReloading;
  }
  
  public Boolean getDirectoryListings()
  {
    return directoryListings;
  }
  
  public Boolean getUseInvoker()
  {
    return useInvoker;
  }
  
  public String getInvokerPrefix()
  {
    return invokerPrefix;
  }
  
  public Boolean getSimulateModUniqueId()
  {
    return simulateModUniqueId;
  }
  
  public Boolean getUseSavedSessions()
  {
    return useSavedSessions;
  }
  
  public int getMaxParamAllowed()
  {
    return maxParamAllowed;
  }
  
  public String getPreferredClassLoader()
  {
    return preferredClassLoader;
  }
  
  public RealmConfiguration getRealmConfiguration()
  {
    return realmConfiguration;
  }
  
  public RealmMemoryConfiguration getRealmMemoryConfiguration()
  {
    return realmMemoryConfiguration;
  }
  
  public RealmFileConfiguration getRealmFileConfiguration()
  {
    return realmFileConfiguration;
  }
  
  public RealmJDBCConfiguration getRealmJDBCConfiguration()
  {
    return realmJDBCConfiguration;
  }
  
  public File getTempDirectory()
  {
    return tempDirectory;
  }
  
  public void setControlConfiguration(ControlConfiguration controlConfiguration)
  {
    this.controlConfiguration = controlConfiguration;
  }
  
  public void setHttpListenerConfiguration(HttpListenerConfiguration httpListenerConfiguration)
  {
    this.httpListenerConfiguration = httpListenerConfiguration;
  }
  
  public void setHttpsListenerConfiguration(HttpsListenerConfiguration httpsListenerConfiguration)
  {
    this.httpsListenerConfiguration = httpsListenerConfiguration;
  }
  
  public void setAjp13ListenerConfiguration(Ajp13ListenerConfiguration ajp13ListenerConfiguration)
  {
    this.ajp13ListenerConfiguration = ajp13ListenerConfiguration;
  }
  
  public void setClusterConfiguration(ClusterConfiguration clusterConfiguration)
  {
    this.clusterConfiguration = clusterConfiguration;
  }
  
  public void setHandlerConfiguration(HandlerConfiguration handlerConfiguration)
  {
    this.handlerConfiguration = handlerConfiguration;
  }
  
  public void setAccessLoggerConfiguration(AccessLoggerConfiguration accessLoggerConfiguration)
  {
    this.accessLoggerConfiguration = accessLoggerConfiguration;
  }
  
  public void setSimpleAccessLoggerConfiguration(SimpleAccessLoggerConfiguration simpleAccessLoggerConfiguration)
  {
    this.simpleAccessLoggerConfiguration = simpleAccessLoggerConfiguration;
  }
  
  public void setUseServletReloading(Boolean useServletReloading)
  {
    this.useServletReloading = useServletReloading;
  }
  
  public void setDirectoryListings(Boolean directoryListings)
  {
    this.directoryListings = directoryListings;
  }
  
  public void setUseInvoker(Boolean useInvoker)
  {
    this.useInvoker = useInvoker;
  }
  
  public void setInvokerPrefix(String invokerPrefix)
  {
    this.invokerPrefix = invokerPrefix;
  }
  
  public void setSimulateModUniqueId(Boolean simulateModUniqueId)
  {
    this.simulateModUniqueId = simulateModUniqueId;
  }
  
  public void setUseSavedSessions(Boolean useSavedSessions)
  {
    this.useSavedSessions = useSavedSessions;
  }
  
  public void setMaxParamAllowed(int maxParamAllowed)
  {
    this.maxParamAllowed = maxParamAllowed;
  }
  
  public void setPreferredClassLoader(String preferredClassLoader)
  {
    this.preferredClassLoader = preferredClassLoader;
  }
  
  public void setRealmConfiguration(RealmConfiguration realmConfiguration)
  {
    this.realmConfiguration = realmConfiguration;
  }
  
  public void setRealmMemoryConfiguration(RealmMemoryConfiguration realmMemoryConfiguration)
  {
    this.realmMemoryConfiguration = realmMemoryConfiguration;
  }
  
  public void setRealmFileConfiguration(RealmFileConfiguration realmFileConfiguration)
  {
    this.realmFileConfiguration = realmFileConfiguration;
  }
  
  public void setRealmJDBCConfiguration(RealmJDBCConfiguration realmJDBCConfiguration)
  {
    this.realmJDBCConfiguration = realmJDBCConfiguration;
  }
  
  public void setTempDirectory(File tempDirectory)
  {
    this.tempDirectory = tempDirectory;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.DefaultServerConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

import java.io.Serializable;

public class HandlerConfiguration
  implements Serializable
{
  private static final long serialVersionUID = 616183244738078779L;
  private int countStartup;
  private int countMax;
  private int countMaxIdle;
  
  public HandlerConfiguration(int countStartup, int countMax, int countMaxIdle)
  {
    this.countStartup = countStartup;
    this.countMax = countMax;
    this.countMaxIdle = countMaxIdle;
  }
  
  final int getCountStartup()
  {
    return countStartup;
  }
  
  final int getCountMax()
  {
    return countMax;
  }
  
  final int getCountMaxIdle()
  {
    return countMaxIdle;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.HandlerConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

public class HttpListenerConfiguration
  extends AddressConfiguration
{
  private static final long serialVersionUID = 3804815852233764910L;
  protected final Boolean hostnameLookup;
  
  public HttpListenerConfiguration(int port, String address, Boolean enableHostnameLookup)
  {
    super(port, address);
    hostnameLookup = enableHostnameLookup;
  }
  
  public final Boolean isHostnameLookupEnabled()
  {
    return hostnameLookup;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.HttpListenerConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

import java.io.File;

public class HttpsListenerConfiguration
  extends HttpListenerConfiguration
{
  private static final long serialVersionUID = 8220099147201529114L;
  private final File keyStore;
  private final String keyStorePassword;
  private final String keyManagerType;
  private final Boolean verifyClient;
  private final File certificate;
  private final File privateKey;
  
  public HttpsListenerConfiguration(int port, String address, Boolean enableHostnameLookup, File keyStore, String keyStorePassword, String keyManagerType, Boolean verifyClient, File certificate, File privateKey)
  {
    super(port, address, enableHostnameLookup);
    this.keyStore = keyStore;
    this.keyStorePassword = keyStorePassword;
    this.keyManagerType = keyManagerType;
    this.verifyClient = verifyClient;
    this.certificate = certificate;
    this.privateKey = privateKey;
  }
  
  public final File getKeyStore()
  {
    return keyStore;
  }
  
  public final String getKeyStorePassword()
  {
    return keyStorePassword;
  }
  
  public final String getKeyManagerType()
  {
    return keyManagerType;
  }
  
  public final Boolean getVerifyClient()
  {
    return verifyClient;
  }
  
  public final File getCertificate()
  {
    return certificate;
  }
  
  public final File getPrivateKey()
  {
    return privateKey;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.HttpsListenerConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

import java.io.Serializable;
import net.winstone.core.authentication.realm.ArgumentsRealm;

public class RealmConfiguration
  implements Serializable
{
  private static final long serialVersionUID = 2498604739801805604L;
  private String realmClassName = ArgumentsRealm.class.getName();
  
  public RealmConfiguration(String realmClassName)
  {
    this.realmClassName = realmClassName;
  }
  
  public String getRealmClassName()
  {
    return realmClassName;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.RealmConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

import java.io.File;

public class RealmFileConfiguration
  extends RealmConfiguration
{
  private static final long serialVersionUID = -7536778581583446266L;
  private File configFile;
  
  public RealmFileConfiguration(String realmClassName, File configFile)
  {
    super(realmClassName);
    this.configFile = configFile;
  }
  
  public File getConfigFile()
  {
    return configFile;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.RealmFileConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

public class RealmJDBCConfiguration
  extends RealmConfiguration
{
  private static final long serialVersionUID = 9209624014220154269L;
  private String driver;
  private String url;
  private String user;
  private String password;
  private String userRel;
  private String userNameColunm;
  private String userCredColumn;
  private String userRoleRel;
  private String roleNameCol;
  
  public RealmJDBCConfiguration(String realmClassName, String driver, String url, String user, String password, String userRel, String userNameColunm, String userCredColumn, String userRoleRel, String roleNameCol)
  {
    super(realmClassName);
    this.driver = driver;
    this.url = url;
    this.user = user;
    this.password = password;
    this.userRel = userRel;
    this.userNameColunm = userNameColunm;
    this.userCredColumn = userCredColumn;
    this.userRoleRel = userRoleRel;
    this.roleNameCol = roleNameCol;
  }
  
  public String getDriver()
  {
    return driver;
  }
  
  public String getUrl()
  {
    return url;
  }
  
  public String getUser()
  {
    return user;
  }
  
  public String getPassword()
  {
    return password;
  }
  
  public String getUserRel()
  {
    return userRel;
  }
  
  public String getUserNameColunm()
  {
    return userNameColunm;
  }
  
  public String getUserCredColumn()
  {
    return userCredColumn;
  }
  
  public String getUserRoleRel()
  {
    return userRoleRel;
  }
  
  public String getRoleNameCol()
  {
    return roleNameCol;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.RealmJDBCConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

import java.util.List;

public class RealmMemoryConfiguration
  extends RealmConfiguration
{
  private static final long serialVersionUID = 6291233631467553040L;
  private List<RealmUserConfiguration> users;
  
  public RealmMemoryConfiguration(String realmClassName, List<RealmUserConfiguration> users)
  {
    super(realmClassName);
    this.users = users;
  }
  
  public List<RealmUserConfiguration> getUsers()
  {
    return users;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.RealmMemoryConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

import java.io.Serializable;
import java.util.List;

public class RealmUserConfiguration
  implements Serializable
{
  private static final long serialVersionUID = 6024269194202745118L;
  private String name;
  private String password;
  private List<String> roles;
  
  public RealmUserConfiguration(String name, String password, List<String> roles)
  {
    this.name = name;
    this.password = password;
    this.roles = roles;
  }
  
  public String getName()
  {
    return name;
  }
  
  public String getPassword()
  {
    return password;
  }
  
  public List<String> getRoles()
  {
    return roles;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.RealmUserConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

import java.io.File;

public abstract interface ServerConfiguration
{
  public abstract File getTempDirectory();
  
  public abstract RealmJDBCConfiguration getRealmJDBCConfiguration();
  
  public abstract RealmFileConfiguration getRealmFileConfiguration();
  
  public abstract RealmMemoryConfiguration getRealmMemoryConfiguration();
  
  public abstract RealmConfiguration getRealmConfiguration();
  
  public abstract String getPreferredClassLoader();
  
  public abstract int getMaxParamAllowed();
  
  public abstract Boolean getUseSavedSessions();
  
  public abstract Boolean getSimulateModUniqueId();
  
  public abstract String getInvokerPrefix();
  
  public abstract Boolean getUseInvoker();
  
  public abstract Boolean getDirectoryListings();
  
  public abstract Boolean getUseServletReloading();
  
  public abstract SimpleAccessLoggerConfiguration getSimpleAccessLoggerConfiguration();
  
  public abstract AccessLoggerConfiguration getAccessLoggerConfiguration();
  
  public abstract HandlerConfiguration getHandlerConfiguration();
  
  public abstract ClusterConfiguration getClusterConfiguration();
  
  public abstract Ajp13ListenerConfiguration getAjp13ListenerConfiguration();
  
  public abstract HttpsListenerConfiguration getHttpsListenerConfiguration();
  
  public abstract HttpListenerConfiguration getHttpListenerConfiguration();
  
  public abstract ControlConfiguration getControlConfiguration();
}

/* Location:
 * Qualified Name:     net.winstone.config.ServerConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

import net.winstone.accesslog.SimpleAccessLogger;

public class SimpleAccessLoggerConfiguration
  extends AccessLoggerConfiguration
{
  private static final long serialVersionUID = 491570258594643467L;
  private String loggerFormat;
  private String loggerFilePattern;
  
  public SimpleAccessLoggerConfiguration(String loggerFormat, String loggerFilePattern)
  {
    super(SimpleAccessLogger.class.getName());
    this.loggerFormat = loggerFormat;
    this.loggerFilePattern = loggerFilePattern;
  }
  
  final String getLoggerFormat()
  {
    return loggerFormat;
  }
  
  final String getLoggerFilePattern()
  {
    return loggerFilePattern;
  }
}

/* Location:
 * Qualified Name:     net.winstone.config.SimpleAccessLoggerConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.config;

import java.io.File;
import java.util.List;

public class StartupDeploymentConfiguration
{
  private File webroot;
  private String prefix;
  private File warfile;
  private List<File> webroots;
  private File webappsDir;
  private File hostsDir;
}

/* Location:
 * Qualified Name:     net.winstone.config.StartupDeploymentConfiguration
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.core.authentication;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public abstract interface AuthenticationHandler
{
  public abstract boolean processAuthentication(ServletRequest paramServletRequest, ServletResponse paramServletResponse, String paramString)
    throws IOException, ServletException;
}

/* Location:
 * Qualified Name:     net.winstone.core.authentication.AuthenticationHandler
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.core.authentication;

import java.io.Serializable;
import java.security.Principal;
import java.util.List;

public class AuthenticationPrincipal
  implements Principal, Serializable
{
  private static final long serialVersionUID = 3716429852671570273L;
  private final String userName;
  private final String password;
  private final List<String> roles;
  private String authenticationType;
  
  public AuthenticationPrincipal(String userName, String password, List<String> roles)
  {
    this.userName = userName;
    this.password = password;
    this.roles = roles;
  }
  
  public String getName()
  {
    return userName;
  }
  
  public String getPassword()
  {
    return password;
  }
  
  public String getAuthType()
  {
    return authenticationType;
  }
  
  public void setAuthType(String authType)
  {
    authenticationType = authType;
  }
  
  public boolean isUserIsInRole(String role)
  {
    if (roles == null) {
      return Boolean.FALSE.booleanValue();
    }
    if (role == null) {
      return Boolean.FALSE.booleanValue();
    }
    return roles.contains(role);
  }
}

/* Location:
 * Qualified Name:     net.winstone.core.authentication.AuthenticationPrincipal
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.core.authentication;

public abstract interface AuthenticationRealm
{
  public abstract AuthenticationPrincipal authenticateByUsernamePassword(String paramString1, String paramString2);
  
  public abstract AuthenticationPrincipal retrieveUser(String paramString);
}

/* Location:
 * Qualified Name:     net.winstone.core.authentication.AuthenticationRealm
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package net.winstone.core.authentication;

import java.io.IOException;
import java.util.List;
import java.util.Set;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.winstone.core.WebAppConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

public abstract class BaseAuthenticationHandler
  implements AuthenticationHandler
{
  private static Logger logger = LoggerFactory.getLogger(BaseAuthenticationHandler.class);
  private static final transient String ELEM_REALM_NAME = "realm-name";
  protected final SecurityConstraint[] constraints;
  protected final AuthenticationRealm realm;
  protected String realmName;
  
  protected BaseAuthenticationHandler(Node loginConfigNode, List constraintNodes, Set rolesAllowed, AuthenticationRealm realm)
  {
    this.realm = realm;
    for (int m = 0; m < loginConfigNode.getChildNodes().getLength(); m++)
    {
      Node loginElm = loginConfigNode.getChildNodes().item(m);
      if (loginElm.getNodeType() == 1) {
        if (loginElm.getNodeName().equals("realm-name")) {
          realmName = WebA
1 2 3 4 5 6 7 8 9 10 11 12 13 14

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2019. Infinite Loop Ltd