|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.baswell.routes.RoutesConfiguration
public class RoutesConfiguration
Global route configuration.
| Field Summary | |
|---|---|
boolean |
caseInsensitive
Is route path and parameter matching case insensitive? Default value: |
java.lang.String |
defaultContentType
Default content type returned by all routes if not overridden. |
boolean |
defaultReturnedStringIsContent
If true by default strings returned from route methods are sent back as the content. |
boolean |
developmentMode
If true the RoutingTable will spawn a thread that rebuilds the routing table every
developmentReloadCycleSeconds. |
int |
developmentReloadCycleSeconds
The number of seconds between development mode reloads of the RoutingTable. |
RoutesLogger |
logger
Logger Routes uses for error messages. |
MetaAuthenticator |
metaAuthenticator
The authentication mechanism for the Routes meta page. |
java.lang.String |
rootForwardPath
The root directory prepended to all file resource forward paths. |
java.lang.String |
rootPath
The global path prepended to all route paths. |
RouteByConvention |
routeByConvention
The scheme for mapping route methods to HTTP methods and HTTP paths when not explicitly set by the Route
annotation. |
RouteInstancePool |
routeInstancePool
The factory for creating new route instances to process HTTP requests. |
RoutesCache |
routesCache
The routes cache implementation. |
java.lang.String |
routesMetaPath
The path (relative to context path) to access the Routes meta page. |
boolean |
routeUnannotatedPublicMethods
Default value for determining if public methods be candidates for HTTP routes if they aren't annotated with Route?
If true only unannotated, public methods of the immediate class will be used. |
int |
streamBufferSize
The buffer size for streaming back content. |
| Constructor Summary | |
|---|---|
RoutesConfiguration()
|
|
| Method Summary | |
|---|---|
RoutesConfiguration |
defineSymbol(java.lang.String symbol,
java.lang.Class clazz)
Defines a new regular expression whose identity is the given symbol and value is the regular expression for one of the following classes: Byte byte Short short Integer int Long long Float float Double double Boolean boolean String |
RoutesConfiguration |
defineSymbol(java.lang.String symbol,
java.lang.String pattern)
Defines a new regular expression whose id is the given symbol and value is the given pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean developmentMode
RoutingTable will spawn a thread that rebuilds the routing table every
developmentReloadCycleSeconds.
Default value: false
public int developmentReloadCycleSeconds
RoutingTable. If developmentMode
is false this property is not used.
Default value: 5
public java.lang.String rootPath
public java.lang.String rootForwardPath
public boolean caseInsensitive
public java.lang.String defaultContentType
Routes.defaultContentType(),
Route.contentType(), or by explicitly calling ServletResponse.setContentType(String) in the
route method.
Default value:
public boolean defaultReturnedStringIsContent
Routes.defaultReturnedStringIsContent() or Route.returnedStringIsContent().
Default value:
public int streamBufferSize
public RouteInstancePool routeInstancePool
DefaultRouteInstancePool
public RouteByConvention routeByConvention
Route
annotation.
Default value: RouteByLowercaseConvention
public RoutesCache routesCache
public java.lang.String routesMetaPath
public MetaAuthenticator metaAuthenticator
public boolean routeUnannotatedPublicMethods
Route?
If true only unannotated, public methods of the immediate class will be used. Public, unannotated methods of extended
classes will not be candidates (ex. Object.equals(Object). This can be overriden by Routes.routeUnannotatedPublicMethods().
Default value:
public RoutesLogger logger
null to suppress all logging. By default SystemErrLogger.
| Constructor Detail |
|---|
public RoutesConfiguration()
| Method Detail |
|---|
public RoutesConfiguration defineSymbol(java.lang.String symbol,
java.lang.Class clazz)
throws java.lang.IllegalArgumentException
symbol - clazz -
java.lang.IllegalArgumentException - If the given clazz is not one of the above classes.
public RoutesConfiguration defineSymbol(java.lang.String symbol,
java.lang.String pattern)
throws java.lang.IllegalArgumentException
symbol - pattern -
java.lang.IllegalArgumentException - If the given pattern is not a valid regular expression.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||