ActionRuleApplicable, Replicable<TransletRule>, ResponseRuleApplicablepublic class TransletRule extends java.lang.Object implements ActionRuleApplicable, ResponseRuleApplicable, Replicable<TransletRule>
Created: 2008. 03. 22 PM 5:48:09
| Constructor | Description |
|---|---|
TransletRule() |
Instantiates a new TransletRule.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addResponseRule(ResponseRule responseRule) |
|
void |
applyActionRule(BeanActionRule beanActionRule) |
Adds the bean action.
|
void |
applyActionRule(EchoActionRule echoActionRule) |
Adds the echo action.
|
void |
applyActionRule(HeadingActionRule headingActionRule) |
Adds the heading action.
|
void |
applyActionRule(IncludeActionRule includeActionRule) |
Adds the process-call action.
|
void |
applyActionRule(MethodActionRule methodActionRule) |
Adds the method action.
|
Response |
applyResponseRule(DispatchResponseRule dispatchResponseRule) |
Apply the dispatch response rule to the response rule.
|
Response |
applyResponseRule(ForwardResponseRule forwardResponseRule) |
Apply the forward response rule to the response rule.
|
Response |
applyResponseRule(RedirectResponseRule redirectResponseRule) |
Apply the redirect response rule to the response rule.
|
Response |
applyResponseRule(TransformRule transformRule) |
Apply the transform response rule to the response rule.
|
void |
determineResponseRule() |
|
MethodType[] |
getAllowedMethods() |
Gets the allowed methods.
|
AspectAdviceRuleRegistry |
getAspectAdviceRuleRegistry() |
|
ContentList |
getContentList() |
Gets the content list.
|
java.lang.String |
getDescription() |
Gets the description.
|
ExceptionRule |
getExceptionRule() |
|
FilterParameters |
getFilterParameters() |
Gets the filter parameters.
|
java.lang.String |
getMaskPattern() |
Gets the mask pattern.
|
java.lang.String |
getName() |
Gets the translet name.
|
WildcardPattern |
getNamePattern() |
Gets the name pattern.
|
Token[] |
getNameTokens() |
Gets the name tokens.
|
RequestRule |
getRequestRule() |
Gets the request rule.
|
ResponseRule |
getResponseRule() |
Gets the response rule.
|
java.util.List<ResponseRule> |
getResponseRuleList() |
|
java.lang.String |
getScanPath() |
Gets the scan path.
|
java.lang.Class<? extends CoreTranslet> |
getTransletImplementationClass() |
|
java.lang.Class<? extends Translet> |
getTransletInterfaceClass() |
|
boolean |
isExplicitContent() |
Returns whether the content element is explicitly declared.
|
boolean |
isImplicitResponse() |
|
static java.lang.String |
makeRestfulTransletName(java.lang.String transletName,
MethodType[] allowedMethods) |
|
static TransletRule |
newInstance(java.lang.String name,
MethodType[] allowedMethods) |
|
static TransletRule |
newInstance(java.lang.String name,
java.lang.String method) |
|
static TransletRule |
newInstance(java.lang.String name,
java.lang.String scanPath,
java.lang.String maskPattern,
MethodType[] allowedMethods) |
|
static TransletRule |
newInstance(java.lang.String name,
java.lang.String scanPath,
java.lang.String maskPattern,
java.lang.String method) |
|
TransletRule |
replicate() |
Creates and returns a new instance after replicating a rule or Object.
|
static TransletRule |
replicate(TransletRule transletRule) |
|
static TransletRule |
replicate(TransletRule transletRule,
java.lang.String newDispatchName) |
|
AspectAdviceRuleRegistry |
replicateAspectAdviceRuleRegistry() |
|
void |
setAllowedMethods(MethodType[] allowedMethods) |
Sets the allowed methods.
|
void |
setAspectAdviceRuleRegistry(AspectAdviceRuleRegistry aspectAdviceRuleRegistry) |
|
void |
setContentList(ContentList contentList) |
Sets the content list.
|
void |
setDescription(java.lang.String description) |
Sets the description.
|
void |
setExceptionRule(ExceptionRule exceptionRule) |
|
void |
setFilterParameters(FilterParameters filterParameters) |
Sets the filter parameters.
|
void |
setMaskPattern(java.lang.String maskPattern) |
Sets the mask pattern.
|
void |
setName(java.lang.String name) |
Sets the name.
|
void |
setNamePattern(WildcardPattern namePattern) |
Sets the name pattern.
|
void |
setNameTokens(Token[] nameTokens) |
Sets the name tokens.
|
void |
setRequestRule(RequestRule requestRule) |
Sets the request rule.
|
void |
setResponseRule(ResponseRule responseRule) |
Sets the response rule.
|
void |
setResponseRuleList(java.util.List<ResponseRule> responseRuleList) |
|
void |
setScanPath(java.lang.String scanPath) |
Sets the scan path.
|
void |
setTransletImplementationClass(java.lang.Class<? extends CoreTranslet> transletImplementationClass) |
|
void |
setTransletInterfaceClass(java.lang.Class<? extends Translet> transletInterfaceClass) |
|
java.lang.String |
toString() |
|
AspectAdviceRuleRegistry |
touchAspectAdviceRuleRegistry() |
|
ContentList |
touchContentList() |
Returns the content list.
|
ContentList |
touchContentList(boolean explicitContent,
boolean omittable) |
Returns the content list.
|
public java.lang.String getName()
public void setName(java.lang.String name)
name - the new namepublic MethodType[] getAllowedMethods()
public void setAllowedMethods(MethodType[] allowedMethods)
allowedMethods - the allowed methodspublic WildcardPattern getNamePattern()
public void setNamePattern(WildcardPattern namePattern)
namePattern - the new name patternpublic Token[] getNameTokens()
public void setNameTokens(Token[] nameTokens)
nameTokens - the new name tokenspublic java.lang.String getScanPath()
public void setScanPath(java.lang.String scanPath)
scanPath - the new scan pathpublic java.lang.String getMaskPattern()
public void setMaskPattern(java.lang.String maskPattern)
maskPattern - the new mask patternpublic FilterParameters getFilterParameters()
public void setFilterParameters(FilterParameters filterParameters)
filterParameters - the new filter parameterspublic RequestRule getRequestRule()
public void setRequestRule(RequestRule requestRule)
requestRule - the new request rulepublic ContentList getContentList()
public void setContentList(ContentList contentList)
contentList - the new content listpublic ContentList touchContentList()
public ContentList touchContentList(boolean explicitContent, boolean omittable)
explicitContent - whether the content element is explicitly declaredomittable - whether the content list can be omittedpublic boolean isExplicitContent()
public void applyActionRule(BeanActionRule beanActionRule)
ActionRuleApplicableapplyActionRule in interface ActionRuleApplicablebeanActionRule - the bean action rulepublic void applyActionRule(MethodActionRule methodActionRule)
ActionRuleApplicableapplyActionRule in interface ActionRuleApplicablemethodActionRule - the bean action rulepublic void applyActionRule(IncludeActionRule includeActionRule)
ActionRuleApplicableapplyActionRule in interface ActionRuleApplicableincludeActionRule - the process call action rulepublic void applyActionRule(EchoActionRule echoActionRule)
ActionRuleApplicableapplyActionRule in interface ActionRuleApplicableechoActionRule - the echo action rulepublic void applyActionRule(HeadingActionRule headingActionRule)
ActionRuleApplicableapplyActionRule in interface ActionRuleApplicableheadingActionRule - the heading action rulepublic ResponseRule getResponseRule()
public void setResponseRule(ResponseRule responseRule)
responseRule - the new response rulepublic java.util.List<ResponseRule> getResponseRuleList()
public void setResponseRuleList(java.util.List<ResponseRule> responseRuleList)
public void addResponseRule(ResponseRule responseRule)
public boolean isImplicitResponse()
public Response applyResponseRule(TransformRule transformRule)
ResponseRuleApplicableapplyResponseRule in interface ResponseRuleApplicabletransformRule - the transform rulepublic Response applyResponseRule(DispatchResponseRule dispatchResponseRule)
ResponseRuleApplicableapplyResponseRule in interface ResponseRuleApplicabledispatchResponseRule - the dispatch response rulepublic Response applyResponseRule(RedirectResponseRule redirectResponseRule)
ResponseRuleApplicableapplyResponseRule in interface ResponseRuleApplicableredirectResponseRule - the redirect response rulepublic Response applyResponseRule(ForwardResponseRule forwardResponseRule)
ResponseRuleApplicableapplyResponseRule in interface ResponseRuleApplicableforwardResponseRule - the forward response rulepublic void determineResponseRule()
public ExceptionRule getExceptionRule()
public void setExceptionRule(ExceptionRule exceptionRule)
public java.lang.Class<? extends Translet> getTransletInterfaceClass()
public void setTransletInterfaceClass(java.lang.Class<? extends Translet> transletInterfaceClass)
public java.lang.Class<? extends CoreTranslet> getTransletImplementationClass()
public void setTransletImplementationClass(java.lang.Class<? extends CoreTranslet> transletImplementationClass)
public AspectAdviceRuleRegistry getAspectAdviceRuleRegistry()
public void setAspectAdviceRuleRegistry(AspectAdviceRuleRegistry aspectAdviceRuleRegistry)
public AspectAdviceRuleRegistry touchAspectAdviceRuleRegistry()
public AspectAdviceRuleRegistry replicateAspectAdviceRuleRegistry()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new descriptionpublic TransletRule replicate()
Replicablereplicate in interface Replicable<TransletRule>public java.lang.String toString()
toString in class java.lang.Objectpublic static TransletRule newInstance(java.lang.String name, java.lang.String scanPath, java.lang.String maskPattern, java.lang.String method) throws IllegalRuleException
IllegalRuleExceptionpublic static TransletRule newInstance(java.lang.String name, java.lang.String scanPath, java.lang.String maskPattern, MethodType[] allowedMethods)
public static TransletRule newInstance(java.lang.String name, java.lang.String method) throws IllegalRuleException
IllegalRuleExceptionpublic static TransletRule newInstance(java.lang.String name, MethodType[] allowedMethods)
public static TransletRule replicate(TransletRule transletRule)
public static TransletRule replicate(TransletRule transletRule, java.lang.String newDispatchName)
public static java.lang.String makeRestfulTransletName(java.lang.String transletName,
MethodType[] allowedMethods)
Copyright © 2008–2018 The Aspectran Project. All rights reserved.