public class HTTPServerPolicy extends Object
Java class for HTTPServerPolicy complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="HTTPServerPolicy"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> </sequence> <attribute name="ReceiveTimeout" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="30000" /> <attribute name="SuppressClientSendErrors" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> <attribute name="SuppressClientReceiveErrors" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> <attribute name="HonorKeepAlive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> <attribute name="KeepAliveParameters" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="RedirectURL" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="CacheControl" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="ContentLocation" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="ContentType" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="ContentEncoding" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="ServerType" type="{http://www.w3.org/2001/XMLSchema}string" /> <anyAttribute namespace='http://schemas.xmlsoap.org/wsdl/'/> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected String |
cacheControl
Most commonly used to specify no-cache, however the standard supports a
dozen or so caching related directives for responses.
|
protected String |
contentEncoding
Specifies any additional encoding applied to the response.
|
protected String |
contentLocation
Specifies the URL representing the resource used to satisfy the request(e.g., to inform that default.htm document was used.)
|
protected String |
contentType
Specifies the MIME type used for responses.
|
protected Boolean |
honorKeepAlive
When set to true, the request socket will remain open after the reply is
sent to the client, if the client has requested keep-alive and is using
at least version 1.1 of HTTP.
|
protected String |
keepAliveParameters
If KeepAlive connections are turned on, this allows sending additional
parameters back to the client via the Keep-Alive header.
|
protected PropertyChangeSupport |
propertyListener |
protected Long |
receiveTimeout
Receive timeout in milliseconds, 0 is infinite
|
protected String |
redirectURL
A URL to which clients are redirected (if the ReplyCode and ReplyDescription
are not set, ReplyCode will be set to 302, and ReplyDescription will be set
to 'Object Moved').
|
protected String |
serverType
Specifies an optional value for the HTTP ServerType property.
|
protected Boolean |
suppressClientReceiveErrors
When set to false, exceptions will be thrown when an error is encountered
sending a reply from to client.
|
protected Boolean |
suppressClientSendErrors
When set to false, exceptions will be thrown when an error is encountered
receiving a request from the client.
|
Constructor and Description |
---|
HTTPServerPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
String |
getCacheControl()
Gets the value of the cacheControl property.
|
String |
getContentEncoding()
Gets the value of the contentEncoding property.
|
String |
getContentLocation()
Gets the value of the contentLocation property.
|
String |
getContentType()
Gets the value of the contentType property.
|
String |
getKeepAliveParameters()
Gets the value of the keepAliveParameters property.
|
Map<QName,String> |
getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.
|
long |
getReceiveTimeout()
Gets the value of the receiveTimeout property.
|
String |
getRedirectURL()
Gets the value of the redirectURL property.
|
String |
getServerType()
Gets the value of the serverType property.
|
boolean |
isHonorKeepAlive()
Gets the value of the honorKeepAlive property.
|
boolean |
isSetCacheControl() |
boolean |
isSetContentEncoding() |
boolean |
isSetContentLocation() |
boolean |
isSetContentType() |
boolean |
isSetHonorKeepAlive() |
boolean |
isSetKeepAliveParameters() |
boolean |
isSetReceiveTimeout() |
boolean |
isSetRedirectURL() |
boolean |
isSetServerType() |
boolean |
isSetSuppressClientReceiveErrors() |
boolean |
isSetSuppressClientSendErrors() |
boolean |
isSuppressClientReceiveErrors()
Gets the value of the suppressClientReceiveErrors property.
|
boolean |
isSuppressClientSendErrors()
Gets the value of the suppressClientSendErrors property.
|
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
setCacheControl(String value)
Sets the value of the cacheControl property.
|
void |
setContentEncoding(String value)
Sets the value of the contentEncoding property.
|
void |
setContentLocation(String value)
Sets the value of the contentLocation property.
|
void |
setContentType(String value)
Sets the value of the contentType property.
|
void |
setHonorKeepAlive(boolean value)
Sets the value of the honorKeepAlive property.
|
void |
setKeepAliveParameters(String value)
Sets the value of the keepAliveParameters property.
|
void |
setReceiveTimeout(long value)
Sets the value of the receiveTimeout property.
|
void |
setRedirectURL(String value)
Sets the value of the redirectURL property.
|
void |
setServerType(String value)
Sets the value of the serverType property.
|
void |
setSuppressClientReceiveErrors(boolean value)
Sets the value of the suppressClientReceiveErrors property.
|
void |
setSuppressClientSendErrors(boolean value)
Sets the value of the suppressClientSendErrors property.
|
void |
unsetHonorKeepAlive() |
void |
unsetReceiveTimeout() |
void |
unsetSuppressClientReceiveErrors() |
void |
unsetSuppressClientSendErrors() |
protected Long receiveTimeout
protected Boolean suppressClientSendErrors
protected Boolean suppressClientReceiveErrors
protected Boolean honorKeepAlive
protected String keepAliveParameters
protected String redirectURL
protected String cacheControl
protected String contentLocation
protected String contentType
protected String contentEncoding
protected String serverType
protected PropertyChangeSupport propertyListener
public long getReceiveTimeout()
Receive timeout in milliseconds, 0 is infinite
Long
public void setReceiveTimeout(long value)
value
- allowed object is
Long
getReceiveTimeout()
public boolean isSetReceiveTimeout()
public void unsetReceiveTimeout()
public boolean isSuppressClientSendErrors()
When set to false, exceptions will be thrown when an error is encountered receiving a request from the client. When set to true these errors will be suppressed. The default is false.
Boolean
public void setSuppressClientSendErrors(boolean value)
value
- allowed object is
Boolean
isSuppressClientSendErrors()
public boolean isSetSuppressClientSendErrors()
public void unsetSuppressClientSendErrors()
public boolean isSuppressClientReceiveErrors()
When set to false, exceptions will be thrown when an error is encountered sending a reply from to client. When set to true these errors will be suppressed. The default is false.
Boolean
public void setSuppressClientReceiveErrors(boolean value)
value
- allowed object is
Boolean
isSuppressClientReceiveErrors()
public boolean isSetSuppressClientReceiveErrors()
public void unsetSuppressClientReceiveErrors()
public boolean isHonorKeepAlive()
When set to true, the request socket will remain open after the reply is sent to the client, if the client has requested keep-alive and is using at least version 1.1 of HTTP. If set to false, the socket will be closed after each reply is sent, even if the client requests the server to keep the connection alive. Keep-Alive improves performance for the client requesting such behavior, but can limit overall scalability of the server for handling many clients. The Default is true.
Boolean
public void setHonorKeepAlive(boolean value)
value
- allowed object is
Boolean
isHonorKeepAlive()
public boolean isSetHonorKeepAlive()
public void unsetHonorKeepAlive()
public String getKeepAliveParameters()
If KeepAlive connections are turned on, this allows sending additional parameters back to the client via the Keep-Alive header. Common parameters are timeout and max to specify how long the client should hold open the connection and how many connections to hold open. Different clients may have different defaults. For Java HTTPUrlConnection, the defaults would be timeout=5, max=5 Example: timeout=60, max=5;
String
public void setKeepAliveParameters(String value)
value
- allowed object is
String
getKeepAliveParameters()
public boolean isSetKeepAliveParameters()
public String getRedirectURL()
A URL to which clients are redirected (if the ReplyCode and ReplyDescription are not set, ReplyCode will be set to 302, and ReplyDescription will be set to 'Object Moved').
String
public void setRedirectURL(String value)
value
- allowed object is
String
getRedirectURL()
public boolean isSetRedirectURL()
public String getCacheControl()
Most commonly used to specify no-cache, however the standard supports a dozen or so caching related directives for responses.
String
public void setCacheControl(String value)
value
- allowed object is
String
getCacheControl()
public boolean isSetCacheControl()
public String getContentLocation()
Specifies the URL representing the resource used to satisfy the request(e.g., to inform that default.htm document was used.)
String
public void setContentLocation(String value)
value
- allowed object is
String
getContentLocation()
public boolean isSetContentLocation()
public String getContentType()
Specifies the MIME type used for responses. The default is set by the binding.
String
public void setContentType(String value)
value
- allowed object is
String
getContentType()
public boolean isSetContentType()
public String getContentEncoding()
Specifies any additional encoding applied to the response. Values are specified using IANA labels.
String
public void setContentEncoding(String value)
value
- allowed object is
String
getContentEncoding()
public boolean isSetContentEncoding()
public String getServerType()
Specifies an optional value for the HTTP ServerType property.
String
public void setServerType(String value)
value
- allowed object is
String
getServerType()
public boolean isSetServerType()
public Map<QName,String> getOtherAttributes()
the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
Apache CXF