Package org.analogweb
Interface Application
-
- All Superinterfaces:
Disposable
- All Known Implementing Classes:
WebApplication
public interface Application extends Disposable
An Analogweb application.- Author:
- snowgoose
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_PACKAGE_NAME
static Response
NOT_FOUND
RequestPath
not found.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Modules
getModules()
ObtainModules
.RouteRegistry
getRouteRegistry()
ObtainRouteRegistry
.Response
processRequest(RequestPath path, RequestContext context, ResponseContext responseContext)
Process request.void
run(ApplicationContext resolver, ApplicationProperties props, Collection<ClassCollector> collectors, ClassLoader classLoader)
Run application.-
Methods inherited from interface org.analogweb.Disposable
dispose
-
-
-
-
Field Detail
-
DEFAULT_PACKAGE_NAME
static final String DEFAULT_PACKAGE_NAME
-
NOT_FOUND
static final Response NOT_FOUND
RequestPath
not found.
-
-
Method Detail
-
run
void run(ApplicationContext resolver, ApplicationProperties props, Collection<ClassCollector> collectors, ClassLoader classLoader)
Run application.- Parameters:
resolver
-ApplicationContext
collectors
-ClassCollector
props
-ApplicationProperties
classLoader
-ClassLoader
-
processRequest
Response processRequest(RequestPath path, RequestContext context, ResponseContext responseContext) throws IOException, WebApplicationException
Process request. Before thenApplication
should be running.- Parameters:
path
-RequestPath
context
-RequestContext
responseContext
-ResponseContext
- Throws:
IOException
WebApplicationException
-
getRouteRegistry
RouteRegistry getRouteRegistry()
ObtainRouteRegistry
.- Returns:
RouteRegistry
-
-