public interface HTTPServiceConfig extends Config
Any number of HTTP services can be defined for a Web
Server configuration
.
Most values can not be changed after the server has been started.
Modifier and Type | Method and Description |
---|---|
PropertyConfig |
addProperty(String name,
String value)
Add a service property.
|
PropertyConfig |
addProperty(String name,
String type,
String value)
Add a service property.
|
String |
getClassName()
Gets the service class.
|
String |
getLog()
Deprecated.
since 6.8
|
int |
getMaximumInboundRequestSize()
Gets the maximum inbound request size.
|
String |
getName()
Gets the service name.
|
List<PropertyConfig> |
getProperties()
Gets list of Service properties.
|
PropertyConfig |
getProperty(String name)
Get a named property.
|
String |
getUrlPattern()
Gets the URL pattern.
|
boolean |
isDebug()
Is debug set?
|
void |
setDebug(boolean debug)
Sets debug option.
|
void |
setLog(String log)
Deprecated.
since 6.8
|
void |
setMaximumInboundRequestSize(int maxSize)
Sets maximum inbound request size.
|
String getName()
String getClassName()
String getUrlPattern()
@Deprecated void setLog(String log) throws ConfigException
ConfigException
@Deprecated String getLog()
void setMaximumInboundRequestSize(int maxSize) throws ConfigException
maxSize
- the maximum number of bytes that the HTTP request may
have. A value of 0 (the default) indicates that the maximum
message size should be used.ConfigException
- if unable to set propertyint getMaximumInboundRequestSize()
void setDebug(boolean debug)
By default this is false.
This value can be set when the server is running.
debug
- true to set.boolean isDebug()
List<PropertyConfig> getProperties()
PropertyConfig getProperty(String name)
name
- property namePropertyConfig addProperty(String name, String value) throws ConfigException
name
- the property namevalue
- the property valueConfigException
- if unable to add propertyPropertyConfig addProperty(String name, String type, String value) throws ConfigException
name
- the property nametype
- the property typevalue
- the property valueConfigException
- if unable to add propertyCopyright © 2022 Push Technology Ltd. All Rights Reserved.