public static class ActionConfig.Builder extends Object implements InterceptorListHolder
build()
method to create the object.Modifier and Type | Field and Description |
---|---|
protected ActionConfig |
target |
Constructor and Description |
---|
ActionConfig.Builder(ActionConfig toClone) |
ActionConfig.Builder(String packageName,
String name,
String className) |
protected ActionConfig target
public ActionConfig.Builder(ActionConfig toClone)
public ActionConfig.Builder packageName(String name)
public ActionConfig.Builder name(String name)
public ActionConfig.Builder className(String name)
public ActionConfig.Builder defaultClassName(String name)
public ActionConfig.Builder methodName(String method)
public ActionConfig.Builder addExceptionMapping(ExceptionMappingConfig exceptionMapping)
public ActionConfig.Builder addExceptionMappings(Collection<? extends ExceptionMappingConfig> mappings)
public ActionConfig.Builder exceptionMappings(Collection<? extends ExceptionMappingConfig> mappings)
public ActionConfig.Builder addInterceptor(InterceptorMapping interceptor)
addInterceptor
in interface InterceptorListHolder
public ActionConfig.Builder addInterceptors(List<InterceptorMapping> interceptors)
addInterceptors
in interface InterceptorListHolder
public ActionConfig.Builder interceptors(List<InterceptorMapping> interceptors)
public ActionConfig.Builder addParam(String name, String value)
public ActionConfig.Builder addParams(Map<String,String> params)
public ActionConfig.Builder addResultConfig(ResultConfig resultConfig)
public ActionConfig.Builder addResultConfigs(Collection<ResultConfig> configs)
public ActionConfig.Builder addResultConfigs(Map<String,ResultConfig> configs)
public ActionConfig.Builder addAllowedMethod(String methodName)
public ActionConfig.Builder addAllowedMethod(Collection<String> methods)
public ActionConfig.Builder location(Location loc)
public ActionConfig build()
protected void embalmTarget()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.