proxygen
FileServerPipelineFactory Class Reference
Inheritance diagram for FileServerPipelineFactory:
wangle::PipelineFactory< FileServerPipeline >

Public Member Functions

FileServerPipeline::Ptr newPipeline (std::shared_ptr< AsyncTransportWrapper > sock) override
 
- Public Member Functions inherited from wangle::PipelineFactory< FileServerPipeline >
virtual FileServerPipeline::Ptr newPipeline (std::shared_ptr< folly::AsyncUDPSocket >, const folly::SocketAddress &)
 
virtual ~PipelineFactory ()=default
 

Detailed Description

Definition at line 80 of file FileServer.cpp.

Member Function Documentation

FileServerPipeline::Ptr FileServerPipelineFactory::newPipeline ( std::shared_ptr< AsyncTransportWrapper sock)
inlineoverridevirtual

Implements wangle::PipelineFactory< FileServerPipeline >.

Definition at line 82 of file FileServer.cpp.

References wangle::Pipeline< R, W >::create().

83  {
84  auto pipeline = FileServerPipeline::create();
85  pipeline->addBack(AsyncSocketHandler(sock));
86  pipeline->addBack(LineBasedFrameDecoder());
87  pipeline->addBack(StringCodec());
88  pipeline->addBack(FileServerHandler());
89  pipeline->finalize();
90 
91  return pipeline;
92  }
static Ptr create()
Definition: Pipeline.h:174

The documentation for this class was generated from the following file: