Interface HTTPServiceConfig
- All Superinterfaces:
Config
Web Server HTTP Service 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.
- Since:
- 4.4
-
Method Summary
Modifier and TypeMethodDescriptionaddProperty
(String name, String value) Add a service property.addProperty
(String name, String type, String value) Add a service property.Gets the service class.getLog()
Deprecated.since 6.8int
Gets the maximum inbound request size.getName()
Gets the service name.Gets list of Service properties.getProperty
(String name) Get a named property.Gets the URL pattern.boolean
isDebug()
Is debug set?void
setDebug
(boolean debug) Sets debug option.void
Deprecated.since 6.8void
setMaximumInboundRequestSize
(int maxSize) Sets maximum inbound request size.
-
Method Details
-
getName
String getName()Gets the service name.- Returns:
- service name
-
getClassName
String getClassName()Gets the service class.- Returns:
- service class name
-
getUrlPattern
String getUrlPattern()Gets the URL pattern.- Returns:
- URL pattern.
-
setLog
Deprecated.since 6.8This method no longer does anything and will be removed in a future release.- Throws:
ConfigException
-
getLog
Deprecated.since 6.8This method no longer does anything and will be removed in a future release.- Returns:
- always null
-
setMaximumInboundRequestSize
Sets maximum inbound request size.- Parameters:
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.- Throws:
ConfigException
- if unable to set property
-
getMaximumInboundRequestSize
int getMaximumInboundRequestSize()Gets the maximum inbound request size.- Returns:
- maximum inbound request size.
-
setDebug
void setDebug(boolean debug) Sets debug option.By default this is false.
This value can be set when the server is running.
- Parameters:
debug
- true to set.
-
isDebug
boolean isDebug()Is debug set?- Returns:
- true if debug set
-
getProperties
List<PropertyConfig> getProperties()Gets list of Service properties.- Returns:
- list of service properties (may be empty)
-
getProperty
Get a named property.- Parameters:
name
- property name- Returns:
- property config or null if not defined
-
addProperty
Add a service property.- Parameters:
name
- the property namevalue
- the property value- Returns:
- the property configuration
- Throws:
ConfigException
- if unable to add property
-
addProperty
Add a service property.- Parameters:
name
- the property nametype
- the property typevalue
- the property value- Returns:
- the property configuration
- Throws:
ConfigException
- if unable to add property
-