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 SummaryModifier 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.8intGets 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.booleanisDebug()Is debug set?voidsetDebug(boolean debug) Sets debug option.voidDeprecated.since 6.8voidsetMaximumInboundRequestSize(int maxSize) Sets maximum inbound request size.
- 
Method Details- 
getNameString getName()Gets the service name.- Returns:
- service name
 
- 
getClassNameString getClassName()Gets the service class.- Returns:
- service class name
 
- 
getUrlPatternString getUrlPattern()Gets the URL pattern.- Returns:
- URL pattern.
 
- 
setLogDeprecated.since 6.8This method no longer does anything and will be removed in a future release.- Throws:
- ConfigException
 
- 
getLogDeprecated.since 6.8This method no longer does anything and will be removed in a future release.- Returns:
- always null
 
- 
setMaximumInboundRequestSizeSets 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
 
- 
getMaximumInboundRequestSizeint getMaximumInboundRequestSize()Gets the maximum inbound request size.- Returns:
- maximum inbound request size.
 
- 
setDebugvoid 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.
 
- 
isDebugboolean isDebug()Is debug set?- Returns:
- true if debug set
 
- 
getPropertiesList<PropertyConfig> getProperties()Gets list of Service properties.- Returns:
- list of service properties (may be empty)
 
- 
getPropertyGet a named property.- Parameters:
- name- property name
- Returns:
- property config or null if not defined
 
- 
addPropertyAdd a service property.- Parameters:
- name- the property name
- value- the property value
- Returns:
- the property configuration
- Throws:
- ConfigException- if unable to add property
 
- 
addPropertyAdd a service property.- Parameters:
- name- the property name
- type- the property type
- value- the property value
- Returns:
- the property configuration
- Throws:
- ConfigException- if unable to add property
 
 
-