org.shept.org.springframework.web.servlet.mvc.delegation.component
public abstract class AbstractComponent extends org.springframework.web.servlet.support.WebContentGenerator implements WebComponent
| Modifier and Type | Field and Description |
|---|---|
static String |
ANCHOR_PREFIX |
private String |
anchorPrefix |
private boolean |
copyResources |
private Map<String,String> |
mappings |
private ResourceInitializer[] |
resources |
| Constructor and Description |
|---|
AbstractComponent() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAnchorPrefix() |
abstract Map<String,String> |
getDefaultMappings() |
Map<String,String> |
getMappings() |
ResourceInitializer[] |
getResources() |
protected boolean |
hasErrorsInPath(org.springframework.validation.BindingResult errors,
ComponentToken token,
String suffix) |
protected void |
initApplicationContext() |
boolean |
isCopyResources() |
protected org.springframework.web.servlet.ModelAndView |
modelRedirect(javax.servlet.http.HttpServletRequest request,
ComponentToken token)
Cuts off all children beyond the last one where the command was issued
|
protected org.springframework.web.servlet.ModelAndView |
modelRedirect(javax.servlet.http.HttpServletRequest request,
ComponentToken token,
Integer index)
Cuts off all children beyond the given index, except when index < 0
|
protected org.springframework.web.servlet.ModelAndView |
modelRedirectClip(javax.servlet.http.HttpServletRequest request,
ComponentToken token)
Cuts off all children beyond the last one where the command was issued
|
protected org.springframework.web.servlet.ModelAndView |
modelUnhandled(javax.servlet.http.HttpServletRequest request,
ComponentToken token) |
protected org.springframework.web.servlet.ModelAndView |
modelWithErrors(org.springframework.validation.DataBinder binder) |
void |
setAnchorPrefix(String anchorPrefix) |
void |
setCopyResources(boolean copyResources) |
void |
setMappings(Map<String,String> mappings) |
void |
setResources(ResourceInitializer[] resources) |
String[] |
supportedActions() |
boolean |
supportsAction(ComponentToken token) |
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexcecuteAction, supportspublic static String ANCHOR_PREFIX
private String anchorPrefix
private boolean copyResources
private ResourceInitializer[] resources
protected org.springframework.web.servlet.ModelAndView modelWithErrors(org.springframework.validation.DataBinder binder)
- binder - protected org.springframework.web.servlet.ModelAndView modelRedirect(javax.servlet.http.HttpServletRequest request,
ComponentToken token,
Integer index)
protected org.springframework.web.servlet.ModelAndView modelRedirectClip(javax.servlet.http.HttpServletRequest request,
ComponentToken token)
protected org.springframework.web.servlet.ModelAndView modelRedirect(javax.servlet.http.HttpServletRequest request,
ComponentToken token)
protected org.springframework.web.servlet.ModelAndView modelUnhandled(javax.servlet.http.HttpServletRequest request,
ComponentToken token)
public boolean supportsAction(ComponentToken token)
supportsAction in interface WebComponentpublic String[] supportedActions()
supportedActions in interface WebComponentpublic Map<String,String> getMappings()
getMappings in interface WebComponentpublic void setMappings(Map<String,String> mappings)
mappings - the mappings to setprotected boolean hasErrorsInPath(org.springframework.validation.BindingResult errors,
ComponentToken token,
String suffix)
public String getAnchorPrefix()
public void setAnchorPrefix(String anchorPrefix)
anchorPrefix - the anchorPrefix to setprotected void initApplicationContext()
throws org.springframework.beans.BeansException
initApplicationContext in class org.springframework.context.support.ApplicationObjectSupportorg.springframework.beans.BeansExceptionpublic boolean isCopyResources()
public void setCopyResources(boolean copyResources)
copyResources - the copyResources to setpublic ResourceInitializer[] getResources()
public void setResources(ResourceInitializer[] resources)
resources - the resources to setCopyright © 2014. All Rights Reserved.