Class FileMetadataHandler
- java.lang.Object
-
- org.restheart.handlers.PipelinedHandler
-
- org.restheart.mongodb.handlers.files.FileMetadataHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class FileMetadataHandler extends PipelinedHandler
A customised and cut down version of thePutDocumentHandlerorPatchDocumentHandler, this deals with both PUT and PATCHing of the metadata for a binary file.- Author:
- Nath Papadacis <nath@thirststudios.co.uk>
-
-
Field Summary
-
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description FileMetadataHandler()Creates a new instance of PatchFileMetadataHandlerFileMetadataHandler(PipelinedHandler next)FileMetadataHandler(PipelinedHandler next, FileMetadataRepository fileMetadataDAO)FileMetadataHandler(FileMetadataRepository fileMetadataDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(io.undertow.server.HttpServerExchange exchange)-
Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
-
-
-
Constructor Detail
-
FileMetadataHandler
public FileMetadataHandler()
Creates a new instance of PatchFileMetadataHandler
-
FileMetadataHandler
public FileMetadataHandler(FileMetadataRepository fileMetadataDAO)
- Parameters:
fileMetadataDAO-
-
FileMetadataHandler
public FileMetadataHandler(PipelinedHandler next)
- Parameters:
next-
-
FileMetadataHandler
public FileMetadataHandler(PipelinedHandler next, FileMetadataRepository fileMetadataDAO)
- Parameters:
next-fileMetadataDAO-
-
-
Method Detail
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-
-