|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ikrs.httpd.HTTPConfiguration
public class HTTPConfiguration
The HTTP configuration file(s) have become pretty large so the config handling is now located in an extra class.
Constructor Summary | |
---|---|
HTTPConfiguration(HTTPHandler handler,
CustomLogger logger)
Creates a new HTTPConfiguration handler. |
Method Summary | |
---|---|
void |
applyConfiguration(Environment<java.lang.String,BasicType> serverConfiguration)
This method reads the passed HTTP settings from the cnfiguration environment and applies them to the HTTP handler. |
protected HTTPHandler |
getHandler()
Get the HTTP handler for this configuration. |
protected CustomLogger |
getLogger()
Get the logger for this configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPConfiguration(HTTPHandler handler, CustomLogger logger) throws java.lang.NullPointerException
handler
- The HTTP handler to apply the configuration settings to.logger
- A custom logger to use to write log messages.
java.lang.NullPointerException
- If the handler is null.Method Detail |
---|
protected HTTPHandler getHandler()
protected CustomLogger getLogger()
public void applyConfiguration(Environment<java.lang.String,BasicType> serverConfiguration) throws ConfigurationException, java.io.IOException
httpSettings
- The HTTP settings to apply.
ConfigurationException
- If the passed settings contain any malformed or bad entries or is
incomplete. Note that earlier settings might have already been applied
and the handler is only partially configured when this exception
was thrown.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |