Uses of Class
org.hcjf.io.net.NetPackage
-
Packages that use NetPackage Package Description org.hcjf.cloud.impl.network org.hcjf.io.console org.hcjf.io.net org.hcjf.io.net.http org.hcjf.io.net.messages -
-
Uses of NetPackage in org.hcjf.cloud.impl.network
Methods in org.hcjf.cloud.impl.network with parameters of type NetPackage Modifier and Type Method Description CloudSessionCloudClient. checkSession(CloudSession session, MessageBuffer payLoad, NetPackage netPackage)CloudSessionCloudServer. checkSession(CloudSession session, MessageBuffer payLoad, NetPackage netPackage)CloudSessionCloudServer. createSession(NetPackage netPackage)protected voidCloudClient. onDisconnect(CloudSession session, NetPackage netPackage) -
Uses of NetPackage in org.hcjf.io.console
Methods in org.hcjf.io.console with parameters of type NetPackage Modifier and Type Method Description ConsoleSessionConsoleServer. checkSession(ConsoleSession session, MessageBuffer payLoad, NetPackage netPackage)Check the session.ConsoleSessionConsoleServer. createSession(NetPackage netPackage)Creates a default session. -
Uses of NetPackage in org.hcjf.io.net
Subclasses of NetPackage in org.hcjf.io.net Modifier and Type Class Description classDefaultNetPackageDefault implementation of the net package.static classNetPackage.NetPackageWrapperNet package wrapper.Methods in org.hcjf.io.net that return NetPackage Modifier and Type Method Description NetPackageNetPackage.NetPackageWrapper. getNetPackage()Return the wrapped net package.static NetPackageNetPackage. wrap(NetPackage netPackage, byte[] newPayLoad)Create a wrapper of the net package using other pay load.NetPackageNetService. writeData(NetSession session, byte[] data)This method put a net package on the output queue of the session.Methods in org.hcjf.io.net with parameters of type NetPackage Modifier and Type Method Description abstract SNetServiceConsumer. checkSession(S session, D payLoad, NetPackage netPackage)Check the channel session.abstract SNetServer. createSession(NetPackage netPackage)This method must implements the session creation based on the net package that incoming.protected abstract DNetServiceConsumer. decode(NetPackage netPackage)This method decode the net package to obtain the implementation dataprotected voidNetServiceConsumer. onCheckSessionError(S session, D payLoad, NetPackage netPackage, java.lang.Throwable cause)When an exception is occurred while checking session, this method is called to process the package according the exception information.voidNetServiceConsumer. onConnect(NetPackage netPackage)This method abstracts the connection event to use the entities of the domain's implementation.protected voidNetServiceConsumer. onConnect(S session, D payLoad, NetPackage netPackage)Method that must be implemented by the custom implementation to know when a session is connectedvoidNetServiceConsumer. onDisconnect(NetPackage netPackage)This method abstracts the disconnection event to use the entities of the domain's implementation.protected voidNetServiceConsumer. onDisconnect(S session, NetPackage netPackage)Method must be implemented by the custom implementation to known when a session is disconnectedvoidNetServiceConsumer. onRead(NetPackage netPackage)When the net service receive data call this method to process the packageprotected voidNetServiceConsumer. onRead(S session, D payLoad, NetPackage netPackage)When the net service receive data, this method is called to process the package.voidNetServiceConsumer. onWrite(NetPackage netPackage)When the net service write data then call this method to process the package.protected voidNetServiceConsumer. onWrite(S session, NetPackage netPackage)When the net service write data then call this method to process the package.static NetPackageNetPackage. wrap(NetPackage netPackage, byte[] newPayLoad)Create a wrapper of the net package using other pay load. -
Uses of NetPackage in org.hcjf.io.net.http
Methods in org.hcjf.io.net.http with parameters of type NetPackage Modifier and Type Method Description HttpSessionHttpClient. checkSession(HttpSession session, HttpPackage payLoad, NetPackage netPackage)HttpSessionHttpServer. checkSession(HttpSession session, HttpPackage payLoad, NetPackage netPackage)This method must update the http session with all the information of the request.HttpSessionHttpServer. createSession(NetPackage netPackage)This method must implements the session creation based on the net package that incoming.HttpSessionHttpSessionManager. createSession(HttpServer server, NetPackage netPackage)Starts with the http session creation.HttpSessionHttpSessionManager.DefaultHttpSessionManager. createSession(HttpServer server, NetPackage netPackage)Default http session factory creation.protected HttpPackageHttpClient. decode(NetPackage netPackage)This method decode the net package to obtain the implementation dataprotected HttpPackageHttpServer. decode(NetPackage netPackage)This method decode the net package to obtain the implementation dataprotected voidHttpServer. onCheckSessionError(HttpSession session, HttpPackage requestPayLoad, NetPackage netPackage, java.lang.Throwable exception)Manages an exception thrown while trying to check session (authenticate) by calling to the specific context for get an error response depending on exception information.protected voidHttpClient. onConnect(HttpSession session, HttpPackage payLoad, NetPackage netPackage)protected voidHttpServer. onDisconnect(HttpSession session, NetPackage netPackage)This method is called when the session is closed.protected voidHttpClient. onRead(HttpSession session, HttpPackage payLoad, NetPackage netPackage)protected voidHttpServer. onRead(HttpSession session, HttpPackage payLoad, NetPackage netPackage)First check if the package is complete, then try to found the context using the http request information a create the response package.protected voidHttpServer. onWrite(HttpSession session, NetPackage netPackage)When the net service write data then call this method to process the package. -
Uses of NetPackage in org.hcjf.io.net.messages
Methods in org.hcjf.io.net.messages with parameters of type NetPackage Modifier and Type Method Description protected MessageBufferMessagesNode. decode(NetPackage netPackage)Decode the bytes into the net package and append this into the internal buffer.protected MessageBufferMessagesServer. decode(NetPackage netPackage)Decode the information from the network and append this into the internal message buffer.protected voidMessagesNode. onConnect(S session, MessageBuffer payLoad, NetPackage netPackage)This method is called when the node is connected.protected voidMessagesNode. onDisconnect(S session, NetPackage netPackage)protected voidMessagesNode. onRead(S session, MessageBuffer payLoad, NetPackage netPackage)This method is called when the node read information from the net.protected voidMessagesServer. onRead(S session, MessageBuffer payLoad, NetPackage netPackage)This method is called when there are data for some session.
-