Package org.hcjf.io.net
Class NetSession
- java.lang.Object
-
- org.hcjf.service.ServiceSession
-
- org.hcjf.io.net.NetSession
-
- All Implemented Interfaces:
java.lang.Comparable
- Direct Known Subclasses:
CloudSession,ConsoleSession,HttpSession
public abstract class NetSession extends ServiceSession
This interface define de behavior of the net session.- Author:
- javaito
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hcjf.service.ServiceSession
ServiceSession.LayerStackElement, ServiceSession.ServiceSessionSource
-
-
Constructor Summary
Constructors Constructor Description NetSession(java.util.UUID id, NetServiceConsumer consumer)
-
Method Summary
Modifier and Type Method Description NetServiceConsumergetConsumer()Return the consumer.java.lang.StringgetRemoteHost()Returns the remote host of the session.intgetRemotePort()Returns the remote port of the session.booleanisChecked()Return a value to indicate if the session is checked.voidsetChecked(boolean checked)Set a value to indicate if the session is chacked.voidsetRemoteHost(java.lang.String remoteHost)Sets the remote host of the session.voidsetRemotePort(int remotePort)Sets the remote port of the session.-
Methods inherited from class org.hcjf.service.ServiceSession
addEgressPackage, addGrant, addIngressPackage, addServiceSessionSource, addThreadTime, callAs, compareTo, containsGrant, currentIdentity, endThread, equals, findSession, findSession, get, getBody, getCurrentIdentity, getCurrentLayer, getCurrentSession, getGrants, getGuestSession, getId, getInvokerLayer, getLayerStack, getLocale, getProperties, getSessionName, getSystemSession, isGuestSession, isSystemSession, onEndThread, onStartThread, put, putAll, putLayer, remove, removeGrant, removeLayer, runAs, setLocale, setSessionName, startThread
-
-
-
-
Constructor Detail
-
NetSession
public NetSession(java.util.UUID id, NetServiceConsumer consumer)
-
-
Method Detail
-
getConsumer
public NetServiceConsumer getConsumer()
Return the consumer.- Returns:
- Consumer.
-
isChecked
public final boolean isChecked()
Return a value to indicate if the session is checked.- Returns:
- True if the session is checked and false in otherwise
-
setChecked
public final void setChecked(boolean checked)
Set a value to indicate if the session is chacked.- Parameters:
checked- Checked value.
-
getRemoteHost
public java.lang.String getRemoteHost()
Returns the remote host of the session.- Returns:
- Remote host.
-
setRemoteHost
public void setRemoteHost(java.lang.String remoteHost)
Sets the remote host of the session.- Parameters:
remoteHost- Remote host.
-
getRemotePort
public int getRemotePort()
Returns the remote port of the session.- Returns:
- Remote port.
-
setRemotePort
public void setRemotePort(int remotePort)
Sets the remote port of the session.- Parameters:
remotePort- Remote port.
-
-