public class PackageConfig extends Located implements Comparable, Serializable, InterceptorLocator
In the xml configuration file this is defined as the package
tag.
Modifier and Type | Class and Description |
---|---|
static class |
PackageConfig.Builder
The builder for this object.
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,ActionConfig> |
actionConfigs |
protected String |
defaultActionRef |
protected String |
defaultClassRef |
protected String |
defaultInterceptorRef |
protected String |
defaultResultType |
protected Set<String> |
globalAllowedMethods |
protected List<ExceptionMappingConfig> |
globalExceptionMappingConfigs |
protected Map<String,ResultConfig> |
globalResultConfigs |
protected Map<String,Object> |
interceptorConfigs |
protected boolean |
isAbstract |
protected String |
name |
protected String |
namespace |
protected boolean |
needsRefresh |
protected List<PackageConfig> |
parents |
protected Map<String,ResultTypeConfig> |
resultTypeConfigs |
protected boolean |
strictMethodInvocation |
Modifier | Constructor and Description |
---|---|
protected |
PackageConfig(PackageConfig orig) |
protected |
PackageConfig(String name) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o) |
Map<String,ActionConfig> |
getActionConfigs() |
Map<String,ActionConfig> |
getAllActionConfigs()
returns the Map of all the ActionConfigs available in the current package.
|
List<ExceptionMappingConfig> |
getAllExceptionMappingConfigs()
returns the List of all the ExceptionMappingConfigs available in the current package.
|
Map<String,ResultConfig> |
getAllGlobalResults()
returns the Map of all the global ResultConfigs available in the current package.
|
Map<String,Object> |
getAllInterceptorConfigs()
returns the Map of all InterceptorConfigs and InterceptorStackConfigs available in the current package.
|
Map<String,ResultTypeConfig> |
getAllResultTypeConfigs()
returns the Map of all the ResultTypeConfigs available in the current package.
|
String |
getDefaultActionRef() |
String |
getDefaultClassRef() |
String |
getDefaultInterceptorRef() |
String |
getDefaultResultType() |
String |
getFullDefaultActionRef() |
String |
getFullDefaultInterceptorRef() |
String |
getFullDefaultResultType()
Returns the default result type for this package.
|
Set<String> |
getGlobalAllowedMethods()
gets the GlobalAllowedMethods local to this package
|
List<ExceptionMappingConfig> |
getGlobalExceptionMappingConfigs()
gets the ExceptionMappingConfigs local to this package
|
Map<String,ResultConfig> |
getGlobalResultConfigs()
gets the global ResultConfigs local to this package
|
Object |
getInterceptorConfig(String name)
Gets an interceptor configuration object.
|
Map<String,Object> |
getInterceptorConfigs()
gets the InterceptorConfigs and InterceptorStackConfigs local to this package
|
String |
getName() |
String |
getNamespace() |
List<PackageConfig> |
getParents() |
Map<String,ResultTypeConfig> |
getResultTypeConfigs()
gets the ResultTypeConfigs local to this package
|
int |
hashCode() |
boolean |
isAbstract() |
boolean |
isNeedsRefresh() |
boolean |
isStrictMethodInvocation() |
String |
toString() |
getLocation, setLocation
protected Map<String,ActionConfig> actionConfigs
protected Map<String,ResultConfig> globalResultConfigs
protected Map<String,ResultTypeConfig> resultTypeConfigs
protected List<ExceptionMappingConfig> globalExceptionMappingConfigs
protected List<PackageConfig> parents
protected String defaultInterceptorRef
protected String defaultActionRef
protected String defaultResultType
protected String defaultClassRef
protected String name
protected String namespace
protected boolean isAbstract
protected boolean needsRefresh
protected boolean strictMethodInvocation
protected PackageConfig(String name)
protected PackageConfig(PackageConfig orig)
public boolean isAbstract()
public Map<String,ActionConfig> getActionConfigs()
public Map<String,ActionConfig> getAllActionConfigs()
ActionConfig
public Map<String,ResultConfig> getAllGlobalResults()
ResultConfig
public Map<String,Object> getAllInterceptorConfigs()
InterceptorConfig
,
InterceptorStackConfig
public Map<String,ResultTypeConfig> getAllResultTypeConfigs()
ResultTypeConfig
public List<ExceptionMappingConfig> getAllExceptionMappingConfigs()
ExceptionMappingConfig
public String getDefaultInterceptorRef()
public String getDefaultActionRef()
public String getDefaultClassRef()
public String getDefaultResultType()
public String getFullDefaultInterceptorRef()
public String getFullDefaultActionRef()
public String getFullDefaultResultType()
Returns the default result type for this package.
If there is no default result type, but this package has parents - we will try to look up the default result type of a parent.
public Map<String,ResultConfig> getGlobalResultConfigs()
ResultConfig
public Map<String,Object> getInterceptorConfigs()
InterceptorConfig
,
InterceptorStackConfig
public String getName()
public String getNamespace()
public List<PackageConfig> getParents()
public Map<String,ResultTypeConfig> getResultTypeConfigs()
ResultTypeConfig
public boolean isNeedsRefresh()
public List<ExceptionMappingConfig> getGlobalExceptionMappingConfigs()
ExceptionMappingConfig
public Set<String> getGlobalAllowedMethods()
public boolean isStrictMethodInvocation()
public int compareTo(Object o)
compareTo
in interface Comparable
public Object getInterceptorConfig(String name)
InterceptorLocator
getInterceptorConfig
in interface InterceptorLocator
name
- The interceptor or interceptor stack nameInterceptorConfig
or InterceptorStackConfig
objectCopyright © 2000–2020 Apache Software Foundation. All rights reserved.