|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.awf.configuration.Configuration
public class Configuration
Simple type to hold configuration options, to be passed to HttpServer
.
| Constructor Summary | |
|---|---|
Configuration()
|
|
| Method Summary | |
|---|---|
String |
getHandlerPackage()
Retrieve the package under which RequestHandler
implementations are to be found, for example "org.apache.awf". |
String |
getStaticDirectory()
Retrieve directory from which static content should be retrieved. |
void |
setCreateETags(boolean createETags)
Set whether ETags should be generated and applied. |
void |
setHandlerPackage(String handlerPackage)
Set package under which RequestHandler implementations are
to be found, for example "org.apache.awf". |
void |
setStaticDirectory(String staticDirectory)
Set the directory from which static content should be retrieved. |
boolean |
shouldCreateETags()
Determine whether ETags should currently be generated and applied. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Configuration()
| Method Detail |
|---|
public String getHandlerPackage()
RequestHandler
implementations are to be found, for example "org.apache.awf".
public void setHandlerPackage(String handlerPackage)
RequestHandler implementations are
to be found, for example "org.apache.awf".
handlerPackage - the name of the package.public String getStaticDirectory()
DEFAULT_STATIC_DIRECTORY where empty or
null.
public void setStaticDirectory(String staticDirectory)
staticDirectory - the directory name for use.public boolean shouldCreateETags()
true if they are to be created; false
otherwise.public void setCreateETags(boolean createETags)
createETags - true to create them; false
otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||