public static class ActionConfig.Builder extends Object implements InterceptorListHolder
build()
method to create the object.Modifier and Type | Field and Description |
---|---|
protected Set<String> |
allowedMethods |
protected ActionConfig |
target |
Constructor and Description |
---|
Builder(ActionConfig toClone) |
Builder(String packageName,
String name,
String className) |
protected ActionConfig target
public 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.Builder setStrictMethodInvocation(boolean strictMethodInvocation)
public ActionConfig.Builder setDefaultMethodRegex(String methodRegex)
public ActionConfig build()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.