ActionPossessable, Replicable<TransformRule>public class TransformRule extends ActionPossessSupport implements Replicable<TransformRule>
Created: 2008. 03. 22 PM 5:51:58
| Modifier and Type | Field | Description |
|---|---|---|
static ResponseType |
RESPONSE_TYPE |
| Constructor | Description |
|---|---|
TransformRule() |
Instantiates a new TransformRule.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getContentType() |
Gets the content type.
|
java.lang.Boolean |
getDefaultResponse() |
Returns whether this is the default response.
|
java.lang.String |
getEncoding() |
Gets the character encoding.
|
java.lang.Boolean |
getPretty() |
Returns whether to format the content of the response
to make it easier to read by adding spaces or tabs.
|
java.lang.String |
getTemplateId() |
Gets the template id.
|
TemplateRule |
getTemplateRule() |
Gets the template rule.
|
TransformType |
getTransformType() |
Gets the transform type.
|
boolean |
isDefaultResponse() |
Returns whether this is the default response.
|
boolean |
isPretty() |
Returns whether to format the content of the response
to make it easier to read by adding spaces or tabs.
|
static TransformRule |
newInstance(TransformType transformType,
java.lang.String contentType,
java.lang.String encoding,
java.lang.Boolean defaultResponse,
java.lang.Boolean pretty) |
|
static TransformRule |
newInstance(java.lang.String type,
java.lang.String contentType,
java.lang.String encoding,
java.lang.Boolean defaultResponse,
java.lang.Boolean pretty) |
|
TransformRule |
replicate() |
Creates and returns a new instance after replicating a rule or Object.
|
static TransformRule |
replicate(TransformRule transformRule) |
|
void |
setContentType(java.lang.String contentType) |
Sets the content type.
|
void |
setDefaultResponse(java.lang.Boolean defaultResponse) |
Sets whether this is the default response.
|
void |
setEncoding(java.lang.String encoding) |
Sets the character encoding.
|
void |
setPretty(java.lang.Boolean pretty) |
Set whether to format the content of the response
to make it easier to read by adding spaces or tabs.
|
void |
setTemplateId(java.lang.String templateId) |
Sets the template id.
|
void |
setTemplateRule(TemplateRule templateRule) |
Sets the template rule.
|
void |
setTransformType(TransformType transformType) |
Sets the transform type.
|
java.lang.String |
toString() |
|
static void |
updateTemplateId(TransformRule transformRule,
java.lang.String templateId) |
getActionList, setActionListpublic static final ResponseType RESPONSE_TYPE
public TransformType getTransformType()
public void setTransformType(TransformType transformType)
transformType - the transformType to setpublic java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType - the new content typepublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding - the character encoding to setpublic java.lang.Boolean getDefaultResponse()
public boolean isDefaultResponse()
public void setDefaultResponse(java.lang.Boolean defaultResponse)
defaultResponse - whether this is the default responsepublic java.lang.Boolean getPretty()
public boolean isPretty()
public void setPretty(java.lang.Boolean pretty)
pretty - if true, format the content of the response
by adding spaces or tabspublic java.lang.String getTemplateId()
public void setTemplateId(java.lang.String templateId)
templateId - the template idpublic TemplateRule getTemplateRule()
public void setTemplateRule(TemplateRule templateRule)
templateRule - the template rulepublic TransformRule replicate()
Replicablereplicate in interface Replicable<TransformRule>public java.lang.String toString()
toString in class java.lang.Objectpublic static TransformRule newInstance(java.lang.String type, java.lang.String contentType, java.lang.String encoding, java.lang.Boolean defaultResponse, java.lang.Boolean pretty) throws IllegalRuleException
IllegalRuleExceptionpublic static TransformRule newInstance(TransformType transformType, java.lang.String contentType, java.lang.String encoding, java.lang.Boolean defaultResponse, java.lang.Boolean pretty) throws IllegalRuleException
IllegalRuleExceptionpublic static void updateTemplateId(TransformRule transformRule, java.lang.String templateId) throws IllegalRuleException
IllegalRuleExceptionpublic static TransformRule replicate(TransformRule transformRule)
Copyright © 2008–2018 The Aspectran Project. All rights reserved.