A B C D E F G H I L O P R S T V W 

A

Action - Interface in org.nanoj.web.tinymvc
Action interface
Must be implemented by every action provided by the application
ACTION_METHOD_ATTRIBUTE_NAME - Static variable in class org.nanoj.web.tinymvc.processor.Const
The attribute name for "action.method" value in the request scope
Usable as ${METHOD} in the JSP
This attribute contains the ACTION_METHOD_PARAMETER_NAME
ACTION_METHOD_PARAMETER_NAME - Static variable in class org.nanoj.web.tinymvc.processor.Const
The "action.method" parameter name in a request
Usable as "action.method=value" in a request URL
e.g. : "myaction?
ActionFilter - Class in org.nanoj.web.tinymvc.processor
The NanoJ servlet filter
The unique web entry point to invoke controllers
This filter is created programmatically by a 'ServletContextListener'
Its 'url pattern' is defined in the NanoJ configuration file
ActionFilter(Configuration) - Constructor for class org.nanoj.web.tinymvc.processor.ActionFilter
Constructor
ActionInfo - Class in org.nanoj.web.tinymvc.env
Object containing information about the current action
Stored in the request scope and then usable in the JSP with 'E.L.'
ActionInfo(HttpServletRequest, String, String) - Constructor for class org.nanoj.web.tinymvc.env.ActionInfo
Constructor
ActionParser - Class in org.nanoj.web.tinymvc.processor
Action parser ( SINGLE INSTANCE )
ActionParser(String) - Constructor for class org.nanoj.web.tinymvc.processor.ActionParser
Constructor
ActionProcessor - Class in org.nanoj.web.tinymvc.processor
Action processing ( SINGLE INSTANCE )
The entry point to process an action ( called by the Servlet or ServletFilter )
ActionProcessor(Configuration) - Constructor for class org.nanoj.web.tinymvc.processor.ActionProcessor
Constructor
ActionProvider - Interface in org.nanoj.web.tinymvc.provider
Action Provider interface
ACTIONS_PACKAGE - Static variable in class org.nanoj.web.tinymvc.config.Configuration
 
ACTIONS_PATTERN - Static variable in class org.nanoj.web.tinymvc.config.Configuration
 
ACTIONS_PROVIDER - Static variable in class org.nanoj.web.tinymvc.config.Configuration
 
ActionView - Class in org.nanoj.web.tinymvc.env
Object containing information about the action view
ActionView(String, Configuration) - Constructor for class org.nanoj.web.tinymvc.env.ActionView
Constructor
ActionViewRenderer - Class in org.nanoj.web.tinymvc.processor
TINY MVC Action Renderer
ActionViewRenderer(Configuration) - Constructor for class org.nanoj.web.tinymvc.processor.ActionViewRenderer
 
afterAction(String, HttpServletRequest, HttpServletResponse) - Method in interface org.nanoj.web.tinymvc.Action
Action post-processing
afterAction(String, HttpServletRequest, HttpServletResponse) - Method in class org.nanoj.web.tinymvc.GenericAction
 
ALL - Static variable in class org.nanoj.web.tinymvc.util.ConsoleLogger
 

B

beforeAction(String, HttpServletRequest, HttpServletResponse) - Method in interface org.nanoj.web.tinymvc.Action
Action pre-processing
beforeAction(String, HttpServletRequest, HttpServletResponse) - Method in class org.nanoj.web.tinymvc.GenericAction
 

C

Configuration - Class in org.nanoj.web.tinymvc.config
NanoJ Web Configuration ( SINGLE INSTANCE )
Configuration(Properties) - Constructor for class org.nanoj.web.tinymvc.config.Configuration
Constructor
ConfigurationLoader - Class in org.nanoj.web.tinymvc.config
NanoJ Web Configuration Loader
ConfigurationLoader() - Constructor for class org.nanoj.web.tinymvc.config.ConfigurationLoader
Constructor
ConsoleLogger - Class in org.nanoj.web.tinymvc.util
 
ConsoleLogger(Class<?>) - Constructor for class org.nanoj.web.tinymvc.util.ConsoleLogger
Constructor
Const - Class in org.nanoj.web.tinymvc.processor
 
Const() - Constructor for class org.nanoj.web.tinymvc.processor.Const
 
contextDestroyed(ServletContextEvent) - Method in class org.nanoj.web.tinymvc.processor.WebAppContextListener
 
contextInitialized(ServletContextEvent) - Method in class org.nanoj.web.tinymvc.processor.WebAppContextListener
 
createInstance(String, Class<T>) - Static method in class org.nanoj.web.tinymvc.provider.InstanceProvider
Creates an instance of the given class name and check it's a subclass of the given super class
createInstance(Class<T>) - Static method in class org.nanoj.web.tinymvc.provider.InstanceProvider
Creates an instance of the given class

D

DEBUG - Static variable in class org.nanoj.web.tinymvc.util.ConsoleLogger
 
debug(String) - Method in class org.nanoj.web.tinymvc.util.ConsoleLogger
 
DEFAULT_ACTION - Static variable in class org.nanoj.web.tinymvc.config.Configuration
 
destroy() - Method in class org.nanoj.web.tinymvc.processor.ActionFilter
 
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class org.nanoj.web.tinymvc.processor.ActionFilter
 

E

ERROR - Static variable in class org.nanoj.web.tinymvc.util.ConsoleLogger
 
error(String) - Method in class org.nanoj.web.tinymvc.util.ConsoleLogger
 

F

FieldValues<K,E> - Class in org.nanoj.web.tinymvc.env
Map holding the value for each defined field ( field-name - fied-value )
Stored in the request scope
Usable in the JSP with Expression Language, eg : ${fieldValue.theFieldName}
FieldValues() - Constructor for class org.nanoj.web.tinymvc.env.FieldValues
 
FieldValuesManager - Class in org.nanoj.web.tinymvc.env
Request scope "fieldvalue" object manager
SINGLETON

G

GenericAction - Class in org.nanoj.web.tinymvc
Generic Action (abstract) implementation with few useful methods
GenericAction() - Constructor for class org.nanoj.web.tinymvc.GenericAction
 
getAction(String) - Method in interface org.nanoj.web.tinymvc.provider.ActionProvider
Return the action instance for the given action name
getAction(String) - Method in class org.nanoj.web.tinymvc.provider.SpecificActionProvider
 
getAction(String) - Method in class org.nanoj.web.tinymvc.provider.StandardActionProvider
 
getActionName() - Method in exception org.nanoj.web.tinymvc.TinyMvcActionNotFoundException
Returns the action name
getActionsPackage() - Method in class org.nanoj.web.tinymvc.config.Configuration
 
getActionsPattern() - Method in class org.nanoj.web.tinymvc.config.Configuration
 
getActionsProviderClassName() - Method in class org.nanoj.web.tinymvc.config.Configuration
 
getControllerClass() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
Returns the controller class used to process the action
e.g. : "ComputeAction" Java class
getControllerMethod() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
Returns the controller method used to process the action
( a method of the controller class )
e.g. : "add" Java method ( defined in "ComputeAction" Java class )
getControllerResult() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
 
getDefaultAction() - Method in class org.nanoj.web.tinymvc.config.Configuration
 
getInputParameter(HttpServletRequest, String, Class<T>) - Method in class org.nanoj.web.tinymvc.GenericAction
Returns an InputParameter of the expected class for the given parameter name
getInstance() - Static method in class org.nanoj.web.tinymvc.env.FieldValuesManager
 
getLayoutName() - Method in class org.nanoj.web.tinymvc.env.ActionView
Returns the layout name in short format (can be null)
e.g. : "mylayout"
getLayoutPath() - Method in class org.nanoj.web.tinymvc.env.ActionView
Returns the layout path in the current web-app (can be null)
e.g. : "/WEB-INF/layouts/mylayout.jsp"
getLayoutsFolder() - Method in class org.nanoj.web.tinymvc.config.Configuration
 
getLayoutsSuffix() - Method in class org.nanoj.web.tinymvc.config.Configuration
 
getLayoutTemplateResolver(Configuration) - Static method in class org.nanoj.web.tinymvc.processor.ThymeleafUtil
 
getLogger(Class<?>) - Static method in class org.nanoj.web.tinymvc.util.ConsoleLogger
 
getMethod() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
Returns the current action method that has been executed to produce the current result
getName() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
Returns the current action conventional name
e.g. : 'compute' for 'Compute' or 'myAction' for 'MyAction'
getName() - Method in class org.nanoj.web.tinymvc.env.InputParameter
 
getOriginalName() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
Returns the current action original name (without modification)
e.g. : 'myaction' or 'MyAction'
getOriginalResult() - Method in class org.nanoj.web.tinymvc.env.ActionView
Returns original result (never null)
e.g. : "mypage" or "mypage : mylayout"
getPageName() - Method in class org.nanoj.web.tinymvc.env.ActionView
Returns the page name in short format (never null)
e.g. : "mypage"
getPagePath() - Method in class org.nanoj.web.tinymvc.env.ActionView
Returns the page path in the current web-app (never null)
e.g. : "/WEB-INF/views/mypage.jsp"
getParamAsBoolean(HttpServletRequest, String) - Method in class org.nanoj.web.tinymvc.GenericAction
Returns the parameter's value as a boolean
Throws an exception if not found
getParamAsBoolean(HttpServletRequest, String, Boolean) - Method in class org.nanoj.web.tinymvc.GenericAction
Returns the parameter's value as a boolean
With a default value (used if not found)
getParamAsDouble(HttpServletRequest, String) - Method in class org.nanoj.web.tinymvc.GenericAction
Returns the parameter's value as a double
Throws an exception if not found
getParamAsDouble(HttpServletRequest, String, Double) - Method in class org.nanoj.web.tinymvc.GenericAction
Returns the parameter's value as a double
With a default value (used if not found)
getParamAsFloat(HttpServletRequest, String) - Method in class org.nanoj.web.tinymvc.GenericAction
Returns the parameter's value as a float
Throws an exception if not found
getParamAsFloat(HttpServletRequest, String, Float) - Method in class org.nanoj.web.tinymvc.GenericAction
Returns the parameter's value as a float
With a default value (used if not found)
getParamAsInt(HttpServletRequest, String) - Method in class org.nanoj.web.tinymvc.GenericAction
Returns the parameter's value as an integer
Throws an exception if not found
getParamAsInt(HttpServletRequest, String, Integer) - Method in class org.nanoj.web.tinymvc.GenericAction
Returns the parameter's value as an integer
With a default value (used if not found)
getParamAsString(HttpServletRequest, String) - Method in class org.nanoj.web.tinymvc.GenericAction
Returns the parameter's value as a String
Throws an exception if not found
getParamAsString(HttpServletRequest, String, String) - Method in class org.nanoj.web.tinymvc.GenericAction
Returns the parameter's value as a String
With a default value (used if not found)
getParametersMap(HttpServletRequest) - Method in class org.nanoj.web.tinymvc.GenericAction
Returns a Map built from the Http request parameters
getRequestURI() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
Returns the current action request URI
same as HttpServletRequest.getRequestURI()
e.g. : '/mywebapp/aaa/bbb/myaction'
getRequestURL() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
Returns the current action request URL
same as HttpServletRequest.getRequestURL()
e.g. : 'http://myhost:8080/mywebapp/aaa/bbb/myaction'
getValue() - Method in class org.nanoj.web.tinymvc.env.InputParameter
 
getViewLayoutName() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
 
getViewLayoutPath() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
 
getViewName() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
 
getViewName() - Method in class org.nanoj.web.tinymvc.env.ActionView
Returns the view name ( page name or layout name if any )
e.g. : "mypage" or "mylayout"
getViewPageName() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
 
getViewPagePath() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
 
getViewPath() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
 
getViewPath() - Method in class org.nanoj.web.tinymvc.env.ActionView
Returns the view path ( page path or layout path if any )
e.g. : "/WEB-INF/views/mypage.jsp" or "/WEB-INF/layouts/mylayout.jsp"
getViewsFolder() - Method in class org.nanoj.web.tinymvc.config.Configuration
 
getViewsSuffix() - Method in class org.nanoj.web.tinymvc.config.Configuration
 
getViewsType() - Method in class org.nanoj.web.tinymvc.config.Configuration
 
getViewTemplateResolver(Configuration) - Static method in class org.nanoj.web.tinymvc.processor.ThymeleafUtil
 

H

hasLayout() - Method in class org.nanoj.web.tinymvc.env.ActionView
Returns true if the action result has a layout

I

INFO - Static variable in class org.nanoj.web.tinymvc.util.ConsoleLogger
 
info(String) - Method in class org.nanoj.web.tinymvc.util.ConsoleLogger
 
init(FilterConfig) - Method in class org.nanoj.web.tinymvc.processor.ActionFilter
 
InputParameter<T> - Class in org.nanoj.web.tinymvc.env
 
InputParameter(String, T) - Constructor for class org.nanoj.web.tinymvc.env.InputParameter
 
InstanceProvider - Class in org.nanoj.web.tinymvc.provider
Utility class
InstanceProvider() - Constructor for class org.nanoj.web.tinymvc.provider.InstanceProvider
 

L

LAYOUTS_FOLDER - Static variable in class org.nanoj.web.tinymvc.config.Configuration
 
LAYOUTS_SUFFIX - Static variable in class org.nanoj.web.tinymvc.config.Configuration
 
loadConfiguration() - Method in class org.nanoj.web.tinymvc.config.ConfigurationLoader
Loads the configuration from the file '/META-INF/nanoj.properties'
loadProperties() - Method in class org.nanoj.web.tinymvc.config.ConfigurationLoader
Loads the properties from the file '/META-INF/nanoj.properties'

O

OFF - Static variable in class org.nanoj.web.tinymvc.util.ConsoleLogger
 
org.nanoj.web.tinymvc - package org.nanoj.web.tinymvc
 
org.nanoj.web.tinymvc.config - package org.nanoj.web.tinymvc.config
 
org.nanoj.web.tinymvc.env - package org.nanoj.web.tinymvc.env
 
org.nanoj.web.tinymvc.processor - package org.nanoj.web.tinymvc.processor
 
org.nanoj.web.tinymvc.provider - package org.nanoj.web.tinymvc.provider
 
org.nanoj.web.tinymvc.util - package org.nanoj.web.tinymvc.util
 

P

parseActionURI(HttpServletRequest) - Method in class org.nanoj.web.tinymvc.processor.ActionParser
Parses the given request URI in order to obtain action information
populateBeanFromParameters(Object, HttpServletRequest) - Method in class org.nanoj.web.tinymvc.GenericAction
Populate the given bean with the Http request parameters
Each request parameter having the same name as a bean property is set in the bean
process(HttpServletRequest, HttpServletResponse) - Method in interface org.nanoj.web.tinymvc.Action
Default processing method for an action
Called when the action is called without method name
processAction(HttpServletRequest, HttpServletResponse) - Method in class org.nanoj.web.tinymvc.processor.ActionProcessor
Process the action defined by the given request

R

render(String, ActionInfo, HttpServletRequest, HttpServletResponse) - Method in class org.nanoj.web.tinymvc.processor.ActionViewRenderer
 

S

setActionView(ActionView) - Method in class org.nanoj.web.tinymvc.env.ActionInfo
 
setFieldValue(K, E) - Method in class org.nanoj.web.tinymvc.env.FieldValues
Set a field value
setFieldValue(HttpServletRequest, String, String) - Method in class org.nanoj.web.tinymvc.env.FieldValuesManager
Set a specific field value in the "fieldvalue" object (in the request scope)
setFieldValue(HttpServletRequest, String, String) - Method in class org.nanoj.web.tinymvc.GenericAction
Set a specific field value in the "fieldvalue" object (in the request scope)
setFieldValuesFromParameters(HttpServletRequest) - Method in class org.nanoj.web.tinymvc.env.FieldValuesManager
Set all the request parameters in the "fieldvalue" object (in the request scope)
setGlobalLevel(int) - Static method in class org.nanoj.web.tinymvc.util.ConsoleLogger
 
setProcessingResult(String, String, String) - Method in class org.nanoj.web.tinymvc.env.ActionInfo
Set information regarding the processing result (after class.method execution)
SpecificActionProvider - Class in org.nanoj.web.tinymvc.provider
Specific action provider based on a 'Map' :
Just get the action class from the map using the given action name as the key
. key : action name
. value : action implementation

This action provider implementation can be used directly by the application
SpecificActionProvider(Map<String, Class<? extends Action>>) - Constructor for class org.nanoj.web.tinymvc.provider.SpecificActionProvider
Constructor
StandardActionProvider - Class in org.nanoj.web.tinymvc.provider
Standard provider for actions
Search actions classes in the standard way using the 'actions package'
StandardActionProvider(String) - Constructor for class org.nanoj.web.tinymvc.provider.StandardActionProvider
Constructor

T

ThymeleafUtil - Class in org.nanoj.web.tinymvc.processor
 
ThymeleafUtil() - Constructor for class org.nanoj.web.tinymvc.processor.ThymeleafUtil
 
TinyMvcActionNotFoundException - Exception in org.nanoj.web.tinymvc
Exception triggered when the required action is not found
TinyMvcActionNotFoundException(String) - Constructor for exception org.nanoj.web.tinymvc.TinyMvcActionNotFoundException
Constructor
TinyMvcActionNotFoundException(String, Throwable) - Constructor for exception org.nanoj.web.tinymvc.TinyMvcActionNotFoundException
Constructor
TinyMvcException - Exception in org.nanoj.web.tinymvc
Runtime exception for Tiny MVC errors
TinyMvcException(String) - Constructor for exception org.nanoj.web.tinymvc.TinyMvcException
Constructor
TinyMvcException(String, Throwable) - Constructor for exception org.nanoj.web.tinymvc.TinyMvcException
Constructor
TinyMvcException(Throwable) - Constructor for exception org.nanoj.web.tinymvc.TinyMvcException
Constructor
toString() - Method in class org.nanoj.web.tinymvc.env.ActionInfo
 
TRACE - Static variable in class org.nanoj.web.tinymvc.util.ConsoleLogger
 
trace(String) - Method in class org.nanoj.web.tinymvc.util.ConsoleLogger
 

V

valueOf(String) - Static method in enum org.nanoj.web.tinymvc.config.ViewsType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.nanoj.web.tinymvc.config.ViewsType
Returns an array containing the constants of this enum type, in the order they are declared.
VIEWS_FOLDER - Static variable in class org.nanoj.web.tinymvc.config.Configuration
 
VIEWS_SUFFIX - Static variable in class org.nanoj.web.tinymvc.config.Configuration
 
VIEWS_TYPE - Static variable in class org.nanoj.web.tinymvc.config.Configuration
 
ViewsType - Enum in org.nanoj.web.tinymvc.config
 

W

WARN - Static variable in class org.nanoj.web.tinymvc.util.ConsoleLogger
 
WebAppContextListener - Class in org.nanoj.web.tinymvc.processor
 
WebAppContextListener() - Constructor for class org.nanoj.web.tinymvc.processor.WebAppContextListener
 
A B C D E F G H I L O P R S T V W 

Copyright © 2016. All rights reserved.