|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.filterchain.DefaultEncoderTransformer
public class DefaultEncoderTransformer
| Constructor Summary | |
|---|---|
protected |
DefaultEncoderTransformer(DefaultFilterChain filterChain)
|
protected |
DefaultEncoderTransformer(DefaultFilterChain filterChain,
AttributeBuilder attributeBuilder)
|
| Method Summary | |
|---|---|
FilterChainContext |
getContext(AttributeStorage state)
|
DefaultFilterChain |
getFilterChain()
|
Object |
getInput(AttributeStorage state)
Gets the input data, which Transformer will work with. |
TransformationResult |
getLastResult(AttributeStorage state)
Gets the last returned Transformer result. |
Object |
getOutput(AttributeStorage state)
Gets the output, which Transformer will use for transformed data. |
AttributeHolder |
getProperties(AttributeStorage state)
Gets the property storage, using which it's possible to read or update Transformer properties. |
void |
hibernate(AttributeStorage state)
Method could be called by framework to let Transformer know, that transformation will be postponed and probably continued in separate Thread, so all resources, which are associated with the current Thread should be detached and stored internally or in the external storage. |
void |
release(AttributeStorage state)
The Transformer has done its work and can release all associated resource. |
void |
setContext(AttributeStorage state,
FilterChainContext context)
|
void |
setInput(AttributeStorage state,
Object input)
Sets the input data, which Transformer will work with. |
void |
setOutput(AttributeStorage state,
Object outputTarget)
Gets the output, which Transformer will use for transformed data. |
TransformationResult |
transform(AttributeStorage state)
Transforms an input data to some custom representation. |
TransformationResult |
transform(AttributeStorage state,
Object originalMessage,
Object outputMessage)
Transforms an input data to some custom representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DefaultEncoderTransformer(DefaultFilterChain filterChain)
protected DefaultEncoderTransformer(DefaultFilterChain filterChain,
AttributeBuilder attributeBuilder)
| Method Detail |
|---|
public DefaultFilterChain getFilterChain()
public FilterChainContext getContext(AttributeStorage state)
public void setContext(AttributeStorage state,
FilterChainContext context)
public TransformationResult transform(AttributeStorage state)
throws TransformationException
TransformerAttributeStorage).
transform in interface Transformerstate - the external state storage, where Transformer could
get/put a state.
TransformationResult
TransformationException
public TransformationResult transform(AttributeStorage state,
Object originalMessage,
Object outputMessage)
throws TransformationException
Transformer
transform in interface Transformerstate - the external state storage, where Transformer
could retrieve or store its state.
TransformationResult
TransformationExceptionpublic Object getInput(AttributeStorage state)
TransformerBuffer, where "reader" will read the data to. But note,
the returned Buffer should always represent READY data.In other words,
if there is no data to be transformed - the Buffer should have 0
remaining bytes.
getInput in interface Transformerstate - the external state storage, where Transformer
could retrieve or store its state.
public void setInput(AttributeStorage state,
Object input)
TransformerBuffer will be used by "reader" to read the data to. But note,
the input Buffer should always represent READY data.In other words,
if there is no data to be transformed - the Buffer should have 0
remaining bytes.
setInput in interface Transformerstate - the external state storage, where Transformer
could retrieve or store its state.input - Input datapublic Object getOutput(AttributeStorage state)
TransformerTransformationResult.
getOutput in interface Transformerstate - the external state storage, where Transformer
could retrieve or store its state.
public void setOutput(AttributeStorage state,
Object outputTarget)
TransformerTransformationResult.
setOutput in interface Transformerstate - the external state storage, where Transformer
could retrieve or store its state.outputTarget - Outputpublic TransformationResult getLastResult(AttributeStorage state)
Transformer
getLastResult in interface Transformerstate - the external state storage, where Transformer
could retrieve or store its state.
public AttributeHolder getProperties(AttributeStorage state)
Transformer
getProperties in interface Transformerstate - the external state storage, where Transformer
could retrieve or store its state.
public void hibernate(AttributeStorage state)
Transformer
hibernate in interface Transformerstate - the external state storage, where Transformer
could retrieve or store its state.public void release(AttributeStorage state)
Transformer
release in interface Transformerstate - the external state storage, where Transformer
could retrieve or store its state.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||