Package com.cloud.clientpak.handlers
Class AuthHandler
java.lang.Object
com.cloud.clientpak.handlers.AuthHandler
Authorization message listener class. Defines methods for work
with an authorization message.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAuthHandler(Controller controller) The constructor saves a reference to the application controller. -
Method Summary
Modifier and TypeMethodDescriptionvoidauthHandle(io.netty.channel.ChannelHandlerContext ctx, Object msg) If this method is called, it means that the server processed the authorization request and returned the result inAuthMessage.voidauthNo()Called when the server refuses authorization.voidopenCloudWindow(AuthMessage authMsg) Opens the Cloud GUI panel, loads a list of objects describing files on the serverFileInfo.
-
Field Details
-
controller
VariableController
-
-
Constructor Details
-
AuthHandler
The constructor saves a reference to the application controller.- Parameters:
controller- application controller.
-
-
Method Details
-
authHandle
If this method is called, it means that the server processed the authorization request and returned the result inAuthMessage.- Parameters:
ctx- channel context.msg- message object.
-
openCloudWindow
Opens the Cloud GUI panel, loads a list of objects describing files on the serverFileInfo.- Parameters:
authMsg- message object.
-
authNo
public void authNo()Called when the server refuses authorization.
-