public.javadoc.org.spincast.core.exchange.DefaultRequestContextDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
DefaultRequestContextDefault (org.spincast:spincast-framework 1.0.0 API)
org.spincast.core.exchange
Class DefaultRequestContextDefault
- java.lang.Object
-
- org.spincast.core.exchange.RequestContextBase<DefaultRequestContext>
-
- org.spincast.core.exchange.DefaultRequestContextDefault
-
- All Implemented Interfaces:
- DefaultRequestContext, RequestContext<DefaultRequestContext>
public class DefaultRequestContextDefault
extends RequestContextBase<DefaultRequestContext>
implements DefaultRequestContext
The default implementation of the request context.
We leave this implementation in the "spincast-core" artifact instead
of the "spincast-default" artifact because we want to be able to
use the SpincastCoreGuiceModule as is when creating a
Guice context. For example :
Injector guice = Guice.createInjector(new SpincastCoreGuiceModule(args),
new AnotherModule())
So SpincastCoreGuiceModule can't be abstract
and
therefore we have to provide this method implementation :
protected Key<?> getRequestContextImplementationClass() {
return Key.get(DefaultRequestContext.class);
}
Some may want to start their application fron the "spincast-core" artifact
but with the default request context.
-
-
Field Summary
Fields
Modifier and Type
Field and Description
protected org.slf4j.Logger
logger
-
Constructor Summary
Constructors
Constructor and Description
DefaultRequestContextDefault(Object exchange,
RequestContextBaseDeps<DefaultRequestContext> requestContextBaseDeps)
-
Method Summary
-
Methods inherited from class org.spincast.core.exchange.RequestContextBase
cacheHeaders, exchange, get, get, getCacheHeadersRequestContextAddonProvider, getInstanceFromGuiceCache, getJsonManager, getLocaleResolver, getLocaleToUse, getRequestRequestContextAddonProvider, getResponseRequestContextAddonProvider, getRoutingRequestContextAddonProvider, getTemplatingRequestContextAddonProvider, getTimeZoneResolver, getTimeZoneToUse, getVariablesRequestContextAddonProvider, getXmlManager, guice, json, request, response, routing, templating, toString, variables, xml
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.spincast.core.exchange.RequestContext
cacheHeaders, exchange, get, get, getLocaleToUse, getTimeZoneToUse, guice, json, request, response, routing, templating, variables, xml
-
-
Constructor Detail
-
DefaultRequestContextDefault
public DefaultRequestContextDefault(Object exchange,
RequestContextBaseDeps<DefaultRequestContext> requestContextBaseDeps)
Copyright © 2019. All rights reserved.