Package com.mastfrog.acteur.server
Interface PipelineDecorator
public interface PipelineDecorator
Allows applications to inject encoders or decoders into the Netty channel
pipeline. This can be used to, for instance, replace the default
HttpObjectAggregator with one that write chunks to a file.
- Author:
- Tim Boudreau
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the pipeline's HttpObjectAggregatorstatic final StringName of the pipeline's compressor, if anystatic final StringName of the pipeline's HttpObjectDecoderstatic final StringName of the pipeline's HttpObjectEncoderstatic final StringName of the pipeline's dispatch handler that invokes acteursstatic final StringName of the handler for @ early pages/acteurs.static final String -
Method Summary
Modifier and TypeMethodDescriptiondefault voidonBeforeInstallSslHandler(io.netty.channel.ChannelPipeline pipeline) voidonCreatePipeline(io.netty.channel.ChannelPipeline pipeline) Called when the pipeline is first fetched/created, before adding anythingvoidonPipelineInitialized(io.netty.channel.ChannelPipeline pipeline) Called after all the standard handlers have been added to the pipeline.
-
Field Details
-
DECODER
Name of the pipeline's HttpObjectDecoder- See Also:
-
AGGREGATOR
Name of the pipeline's HttpObjectAggregator- See Also:
-
ENCODER
Name of the pipeline's HttpObjectEncoder- See Also:
-
COMPRESSOR
Name of the pipeline's compressor, if any- See Also:
-
HANDLER
Name of the pipeline's dispatch handler that invokes acteurs- See Also:
-
PRE_CONTENT_PAGE_HANDLER
Name of the handler for @ early pages/acteurs. Only present if the application has some.- See Also:
-
SSL_HANDLER
- See Also:
-
-
Method Details
-
onBeforeInstallSslHandler
default void onBeforeInstallSslHandler(io.netty.channel.ChannelPipeline pipeline) -
onCreatePipeline
void onCreatePipeline(io.netty.channel.ChannelPipeline pipeline) Called when the pipeline is first fetched/created, before adding anything- Parameters:
pipeline- The pipeline
-
onPipelineInitialized
void onPipelineInitialized(io.netty.channel.ChannelPipeline pipeline) Called after all the standard handlers have been added to the pipeline. You can replace handlers or add additional ones here.- Parameters:
pipeline- The pipeline
-