Package com.cloud.serverpak.handlers
Class FilesListRequestHandler
java.lang.Object
com.cloud.serverpak.handlers.FilesListRequestHandler
The message listener class, defines the response to the request (Files Size Request), about receiving
the state of the Cloud for the user who sent the request.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FilesInformServiceFile information service.private final MainHandlerNetty's main listener. -
Constructor Summary
ConstructorsConstructorDescriptionFilesListRequestHandler(MainHandler mainHandler) The constructor saves a reference to the main listener. -
Method Summary
Modifier and TypeMethodDescriptionvoidfilesListHandle(io.netty.channel.ChannelHandlerContext ctx, Object msg) Sends a list of files in the cloud to the user.
-
Field Details
-
mainHandler
Netty's main listener.- See Also:
-
fileService
File information service.- See Also:
-
-
Constructor Details
-
FilesListRequestHandler
The constructor saves a reference to the main listener.- Parameters:
mainHandler- Netty's main listener.
-
-
Method Details
-
filesListHandle
Sends a list of files in the cloud to the user.- Parameters:
ctx- channel context.msg- the message object.
-