|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.ssl.SSLHandshakeDecoder
public class SSLHandshakeDecoder
Transformer, which works as the decoder on the SSL handshaking phase.
| Constructor Summary | |
|---|---|
SSLHandshakeDecoder()
|
|
| Method Summary | |
|---|---|
Buffer |
getInput(AttributeStorage state)
Gets the input data, which Transformer will work with. |
TransformationResult<Buffer> |
getLastResult(AttributeStorage state)
Gets the last returned Transformer result. |
Buffer |
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 |
setInput(AttributeStorage state,
Buffer input)
Sets the input data, which Transformer will work with. |
void |
setOutput(AttributeStorage state,
Buffer output)
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,
Buffer input,
Buffer output)
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 |
|---|
public SSLHandshakeDecoder()
| Method Detail |
|---|
public TransformationResult transform(AttributeStorage state)
throws TransformationException
TransformerAttributeStorage).
transform in interface Transformer<Buffer,Buffer>state - the external state storage, where Transformer could
get/put a state.
TransformationResult
TransformationException
public TransformationResult transform(AttributeStorage state,
Buffer input,
Buffer output)
throws TransformationException
Transformer
transform in interface Transformer<Buffer,Buffer>state - the external state storage, where Transformer
could retrieve or store its state.
TransformationResult
TransformationExceptionpublic Buffer 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 Transformer<Buffer,Buffer>state - the external state storage, where Transformer
could retrieve or store its state.
public void setInput(AttributeStorage state,
Buffer 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 Transformer<Buffer,Buffer>state - the external state storage, where Transformer
could retrieve or store its state.input - Input datapublic Buffer getOutput(AttributeStorage state)
TransformerTransformationResult.
getOutput in interface Transformer<Buffer,Buffer>state - the external state storage, where Transformer
could retrieve or store its state.
public void setOutput(AttributeStorage state,
Buffer output)
TransformerTransformationResult.
setOutput in interface Transformer<Buffer,Buffer>state - the external state storage, where Transformer
could retrieve or store its state.output - Outputpublic TransformationResult<Buffer> getLastResult(AttributeStorage state)
Transformer
getLastResult in interface Transformer<Buffer,Buffer>state - the external state storage, where Transformer
could retrieve or store its state.
public AttributeHolder getProperties(AttributeStorage state)
Transformer
getProperties in interface Transformer<Buffer,Buffer>state - the external state storage, where Transformer
could retrieve or store its state.
public void hibernate(AttributeStorage state)
Transformer
hibernate in interface Transformer<Buffer,Buffer>state - the external state storage, where Transformer
could retrieve or store its state.public void release(AttributeStorage state)
Transformer
release in interface Transformer<Buffer,Buffer>state - 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 | |||||||||