org.apache.cxf.transports.http.configuration.HTTPClientPolicy Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2009.05.22 at 12:16:54 PM EDT
//
package org.apache.cxf.transports.http.configuration;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import org.apache.cxf.wsdl.TExtensibilityElementImpl;
/**
* Properties used to configure a client-side HTTP port
*
* Java class for HTTPClientPolicy complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="HTTPClientPolicy">
* <complexContent>
* <extension base="{http://schemas.xmlsoap.org/wsdl/}tExtensibilityElement">
* <attribute name="ConnectionTimeout" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="30000" />
* <attribute name="ReceiveTimeout" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="60000" />
* <attribute name="AutoRedirect" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="MaxRetransmits" type="{http://www.w3.org/2001/XMLSchema}int" default="-1" />
* <attribute name="AllowChunking" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* <attribute name="ChunkingThreshold" type="{http://www.w3.org/2001/XMLSchema}int" default="4096" />
* <attribute name="Accept" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="AcceptLanguage" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="AcceptEncoding" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="ContentType" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="Host" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="Connection" type="{http://cxf.apache.org/transports/http/configuration}connectionType" default="Keep-Alive" />
* <attribute name="CacheControl" type="{http://cxf.apache.org/transports/http/configuration}clientCacheControlType" />
* <attribute name="Cookie" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="BrowserType" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="Referer" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="DecoupledEndpoint" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="ProxyServer" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="ProxyServerPort" type="{http://www.w3.org/2001/XMLSchema}int" />
* <attribute name="ProxyServerType" type="{http://cxf.apache.org/transports/http/configuration}proxyServerType" default="HTTP" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "HTTPClientPolicy")
public class HTTPClientPolicy
extends TExtensibilityElementImpl
{
@XmlAttribute(name = "ConnectionTimeout")
@XmlSchemaType(name = "unsignedInt")
protected Long connectionTimeout;
@XmlAttribute(name = "ReceiveTimeout")
@XmlSchemaType(name = "unsignedInt")
protected Long receiveTimeout;
@XmlAttribute(name = "AutoRedirect")
protected Boolean autoRedirect;
@XmlAttribute(name = "MaxRetransmits")
protected Integer maxRetransmits;
@XmlAttribute(name = "AllowChunking")
protected Boolean allowChunking;
@XmlAttribute(name = "ChunkingThreshold")
protected Integer chunkingThreshold;
@XmlAttribute(name = "Accept")
protected String accept;
@XmlAttribute(name = "AcceptLanguage")
protected String acceptLanguage;
@XmlAttribute(name = "AcceptEncoding")
protected String acceptEncoding;
@XmlAttribute(name = "ContentType")
protected String contentType;
@XmlAttribute(name = "Host")
protected String host;
@XmlAttribute(name = "Connection")
protected ConnectionType connection;
@XmlAttribute(name = "CacheControl")
protected ClientCacheControlType cacheControl;
@XmlAttribute(name = "Cookie")
protected String cookie;
@XmlAttribute(name = "BrowserType")
protected String browserType;
@XmlAttribute(name = "Referer")
protected String referer;
@XmlAttribute(name = "DecoupledEndpoint")
protected String decoupledEndpoint;
@XmlAttribute(name = "ProxyServer")
protected String proxyServer;
@XmlAttribute(name = "ProxyServerPort")
protected Integer proxyServerPort;
@XmlAttribute(name = "ProxyServerType")
protected ProxyServerType proxyServerType;
/**
* Gets the value of the connectionTimeout property.
*
* @return
* possible object is
* {@link Long }
*
*/
public long getConnectionTimeout() {
if (connectionTimeout == null) {
return 30000L;
} else {
return connectionTimeout;
}
}
/**
* Sets the value of the connectionTimeout property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setConnectionTimeout(long value) {
this.connectionTimeout = value;
}
public boolean isSetConnectionTimeout() {
return (this.connectionTimeout!= null);
}
public void unsetConnectionTimeout() {
this.connectionTimeout = null;
}
/**
* Gets the value of the receiveTimeout property.
*
* @return
* possible object is
* {@link Long }
*
*/
public long getReceiveTimeout() {
if (receiveTimeout == null) {
return 60000L;
} else {
return receiveTimeout;
}
}
/**
* Sets the value of the receiveTimeout property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setReceiveTimeout(long value) {
this.receiveTimeout = value;
}
public boolean isSetReceiveTimeout() {
return (this.receiveTimeout!= null);
}
public void unsetReceiveTimeout() {
this.receiveTimeout = null;
}
/**
* Gets the value of the autoRedirect property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isAutoRedirect() {
if (autoRedirect == null) {
return false;
} else {
return autoRedirect;
}
}
/**
* Sets the value of the autoRedirect property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setAutoRedirect(boolean value) {
this.autoRedirect = value;
}
public boolean isSetAutoRedirect() {
return (this.autoRedirect!= null);
}
public void unsetAutoRedirect() {
this.autoRedirect = null;
}
/**
* Gets the value of the maxRetransmits property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public int getMaxRetransmits() {
if (maxRetransmits == null) {
return -1;
} else {
return maxRetransmits;
}
}
/**
* Sets the value of the maxRetransmits property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setMaxRetransmits(int value) {
this.maxRetransmits = value;
}
public boolean isSetMaxRetransmits() {
return (this.maxRetransmits!= null);
}
public void unsetMaxRetransmits() {
this.maxRetransmits = null;
}
/**
* Gets the value of the allowChunking property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isAllowChunking() {
if (allowChunking == null) {
return true;
} else {
return allowChunking;
}
}
/**
* Sets the value of the allowChunking property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setAllowChunking(boolean value) {
this.allowChunking = value;
}
public boolean isSetAllowChunking() {
return (this.allowChunking!= null);
}
public void unsetAllowChunking() {
this.allowChunking = null;
}
/**
* Gets the value of the chunkingThreshold property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public int getChunkingThreshold() {
if (chunkingThreshold == null) {
return 4096;
} else {
return chunkingThreshold;
}
}
/**
* Sets the value of the chunkingThreshold property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setChunkingThreshold(int value) {
this.chunkingThreshold = value;
}
public boolean isSetChunkingThreshold() {
return (this.chunkingThreshold!= null);
}
public void unsetChunkingThreshold() {
this.chunkingThreshold = null;
}
/**
* Gets the value of the accept property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAccept() {
return accept;
}
/**
* Sets the value of the accept property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAccept(String value) {
this.accept = value;
}
public boolean isSetAccept() {
return (this.accept!= null);
}
/**
* Gets the value of the acceptLanguage property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAcceptLanguage() {
return acceptLanguage;
}
/**
* Sets the value of the acceptLanguage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAcceptLanguage(String value) {
this.acceptLanguage = value;
}
public boolean isSetAcceptLanguage() {
return (this.acceptLanguage!= null);
}
/**
* Gets the value of the acceptEncoding property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAcceptEncoding() {
return acceptEncoding;
}
/**
* Sets the value of the acceptEncoding property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAcceptEncoding(String value) {
this.acceptEncoding = value;
}
public boolean isSetAcceptEncoding() {
return (this.acceptEncoding!= null);
}
/**
* Gets the value of the contentType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContentType() {
return contentType;
}
/**
* Sets the value of the contentType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContentType(String value) {
this.contentType = value;
}
public boolean isSetContentType() {
return (this.contentType!= null);
}
/**
* Gets the value of the host property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHost() {
return host;
}
/**
* Sets the value of the host property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHost(String value) {
this.host = value;
}
public boolean isSetHost() {
return (this.host!= null);
}
/**
* Gets the value of the connection property.
*
* @return
* possible object is
* {@link ConnectionType }
*
*/
public ConnectionType getConnection() {
if (connection == null) {
return ConnectionType.KEEP_ALIVE;
} else {
return connection;
}
}
/**
* Sets the value of the connection property.
*
* @param value
* allowed object is
* {@link ConnectionType }
*
*/
public void setConnection(ConnectionType value) {
this.connection = value;
}
public boolean isSetConnection() {
return (this.connection!= null);
}
/**
* Gets the value of the cacheControl property.
*
* @return
* possible object is
* {@link ClientCacheControlType }
*
*/
public ClientCacheControlType getCacheControl() {
return cacheControl;
}
/**
* Sets the value of the cacheControl property.
*
* @param value
* allowed object is
* {@link ClientCacheControlType }
*
*/
public void setCacheControl(ClientCacheControlType value) {
this.cacheControl = value;
}
public boolean isSetCacheControl() {
return (this.cacheControl!= null);
}
/**
* Gets the value of the cookie property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCookie() {
return cookie;
}
/**
* Sets the value of the cookie property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCookie(String value) {
this.cookie = value;
}
public boolean isSetCookie() {
return (this.cookie!= null);
}
/**
* Gets the value of the browserType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBrowserType() {
return browserType;
}
/**
* Sets the value of the browserType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBrowserType(String value) {
this.browserType = value;
}
public boolean isSetBrowserType() {
return (this.browserType!= null);
}
/**
* Gets the value of the referer property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getReferer() {
return referer;
}
/**
* Sets the value of the referer property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReferer(String value) {
this.referer = value;
}
public boolean isSetReferer() {
return (this.referer!= null);
}
/**
* Gets the value of the decoupledEndpoint property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDecoupledEndpoint() {
return decoupledEndpoint;
}
/**
* Sets the value of the decoupledEndpoint property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDecoupledEndpoint(String value) {
this.decoupledEndpoint = value;
}
public boolean isSetDecoupledEndpoint() {
return (this.decoupledEndpoint!= null);
}
/**
* Gets the value of the proxyServer property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProxyServer() {
return proxyServer;
}
/**
* Sets the value of the proxyServer property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProxyServer(String value) {
this.proxyServer = value;
}
public boolean isSetProxyServer() {
return (this.proxyServer!= null);
}
/**
* Gets the value of the proxyServerPort property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public int getProxyServerPort() {
return proxyServerPort;
}
/**
* Sets the value of the proxyServerPort property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setProxyServerPort(int value) {
this.proxyServerPort = value;
}
public boolean isSetProxyServerPort() {
return (this.proxyServerPort!= null);
}
public void unsetProxyServerPort() {
this.proxyServerPort = null;
}
/**
* Gets the value of the proxyServerType property.
*
* @return
* possible object is
* {@link ProxyServerType }
*
*/
public ProxyServerType getProxyServerType() {
if (proxyServerType == null) {
return ProxyServerType.HTTP;
} else {
return proxyServerType;
}
}
/**
* Sets the value of the proxyServerType property.
*
* @param value
* allowed object is
* {@link ProxyServerType }
*
*/
public void setProxyServerType(ProxyServerType value) {
this.proxyServerType = value;
}
public boolean isSetProxyServerType() {
return (this.proxyServerType!= null);
}
}