
flex.messaging.services.http.HostConfigurationSettings Maven / Gradle / Ivy
Go to download
BlazeDS is the server-based Java remoting and web messaging technology that enables developers to easily connect to back-end distributed data and push data in real-time to Adobe Flex and Adobe AIR applications for more responsive rich Internet application (RIA) experiences.
The newest version!
/*************************************************************************
*
* ADOBE CONFIDENTIAL
* __________________
*
* Copyright 2002 - 2007 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated
* and its suppliers and may be covered by U.S. and Foreign Patents,
* patents in process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
**************************************************************************/
package flex.messaging.services.http;
/**
* @exclude
* Collects the properties needed to create an Apache Commons HTTPClient
* HostConfiguration. Holds all of the variables needed to describe an HTTP
* connection to a host: remote host, port and protocol, proxy host and port,
* local address, and virtual host.
*
* @author Peter Farland
* @see org.apache.commons.httpclient.HostConfiguration
*/
public class HostConfigurationSettings
{
/** @exclude */
public static final String HOST = "host";
/** @exclude */
public static final String PORT = "port";
/** @exclude */
public static final String PROTOCOL = "protocol";
/** @exclude */
public static final String PROTOCOL_FACFORY = "protocol-factory";
/** @exclude */
public static final String LOCAL_ADDRESS = "local-address";
/** @exclude */
public static final String MAX_CONNECTIONS = "max-connections";
/** @exclude */
public static final String PROXY = "proxy";
/** @exclude */
public static final String VIRTUAL_HOST = "virtual-host";
private String host;
private int port;
private String protocol;
private ProtocolFactory protocolFactory;
private String localAddress;
private int maximumConnections;
private String proxyHost;
private int proxyPort;
private String virtualHost;
/**
* Creates a default HostConfigurationSettings
instance.
*/
public HostConfigurationSettings()
{
maximumConnections = HTTPConnectionManagerSettings.DEFAULT_MAX_CONNECTIONS_HOST;
}
/**
* Returns the host
property.
*
* @return The host name for the connection.
*/
public String getHost()
{
return host;
}
/**
* Sets the host
property.
*
* @param host The host name for the connection.
*/
public void setHost(String host)
{
this.host = host;
}
/**
* Returns the local-address
property.
*
* @return The local address for the connection.
*/
public String getLocalAddress()
{
return localAddress;
}
/**
* Sets the local-address
property.
*
* @param localAddress The local address for the connection.
*/
public void setLocalAddress(String localAddress)
{
this.localAddress = localAddress;
}
/**
* Returns the max-connections
property.
*
* @return The maximum connections.
*/
public int getMaximumConnections()
{
return maximumConnections;
}
/**
* Sets the maximum-connections
property.
*
* @param maximumConnections The maximum connections.
*/
public void setMaximumConnections(int maximumConnections)
{
this.maximumConnections = maximumConnections;
}
/**
* Returns the port
property.
*
* @return The port for the connection.
*/
public int getPort()
{
return port;
}
/**
* Sets the port
property.
*
* @param port The port for the connection.
*/
public void setPort(int port)
{
this.port = port;
}
/**
* Returns the protocol for the connection.
*
* @return The protocol for the connection.
*/
public String getProtocol()
{
return protocol;
}
/**
* Sets the protocol
property.
*
* @param protocol The protocol for the connection.
*/
public void setProtocol(String protocol)
{
this.protocol = protocol;
}
/**
* Returns the protocol factory for the connection.
*
* @return The protocol factory for the connection.
*/
public ProtocolFactory getProtocolFactory()
{
return protocolFactory;
}
/**
* Set the protocol factory for the connection.
*
* @param protocolFactory The protocol factory for the connection.
*/
public void setProtocolFactory(ProtocolFactory protocolFactory)
{
this.protocolFactory = protocolFactory;
}
/**
* Returns the proxy host name for the connection.
*
* @return The proxy host name for the connection.
*/
public String getProxyHost()
{
return proxyHost;
}
/**
* Sets the proxy host name for the connection.
*
* @param proxyHost The proxy host name for the connection.
*/
public void setProxyHost(String proxyHost)
{
this.proxyHost = proxyHost;
}
/**
* Returns the proxy port for the connection.
*
* @return The proxy port for the connection.
*/
public int getProxyPort()
{
return proxyPort;
}
/**
* Sets the proxy port for the connection.
*
* @param proxyPort The proxy port for the connection.
*/
public void setProxyPort(int proxyPort)
{
this.proxyPort = proxyPort;
}
/**
* Returns the virtual host for the connection.
*
* @return The virtual host for the connection.
*/
public String getVirtualHost()
{
return virtualHost;
}
/**
* Sets the virtual host for the connection.
*
* @param virtualHost The virtual host for the connection.
*/
public void setVirtualHost(String virtualHost)
{
this.virtualHost = virtualHost;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy