Package org.hcjf.io.net
Class NetPackage.NetPackageWrapper
- java.lang.Object
-
- org.hcjf.io.net.NetPackage
-
- org.hcjf.io.net.NetPackage.NetPackageWrapper
-
- Enclosing class:
- NetPackage
public static final class NetPackage.NetPackageWrapper extends NetPackage
Net package wrapper.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hcjf.io.net.NetPackage
NetPackage.ActionEvent, NetPackage.NetPackageWrapper, NetPackage.PackageStatus
-
-
Method Summary
Modifier and Type Method Description NetPackage.ActionEventgetActionEvent()Return the action event.java.util.DategetDate()Return the creation date of the package.intgetLocalPort()Return the local port on the connections was stablishedNetPackagegetNetPackage()Return the wrapped net package.NetPackage.PackageStatusgetPackageStatus()Return the status of the package.byte[]getPayload()Return the payload of the package.java.lang.StringgetRemoteAddress()Return the remote ip address.java.lang.StringgetRemoteHost()Return the address of the remote host.intgetRemotePort()Return the port of the remote host.NetSessiongetSession()Return the net session of the package.voidsetPackageStatus(NetPackage.PackageStatus packageStatus)Set a new package status.voidsetSession(NetSession session)Set the session over the package was created.-
Methods inherited from class org.hcjf.io.net.NetPackage
getId, wrap
-
-
-
-
Method Detail
-
getNetPackage
public NetPackage getNetPackage()
Return the wrapped net package.- Returns:
- Wrapped net package.
-
getSession
public NetSession getSession()
Return the net session of the package.- Specified by:
getSessionin classNetPackage- Returns:
- Net session.
-
setSession
public void setSession(NetSession session)
Set the session over the package was created.- Specified by:
setSessionin classNetPackage- Parameters:
session- Net session
-
getPayload
public byte[] getPayload()
Return the payload of the package.- Specified by:
getPayloadin classNetPackage- Returns:
- Payload of the package.
-
getRemoteAddress
public java.lang.String getRemoteAddress()
Return the remote ip address.- Specified by:
getRemoteAddressin classNetPackage- Returns:
- Remote ip address.
-
getRemoteHost
public java.lang.String getRemoteHost()
Return the address of the remote host.- Specified by:
getRemoteHostin classNetPackage- Returns:
- Address of the remote host.
-
getRemotePort
public int getRemotePort()
Return the port of the remote host.- Specified by:
getRemotePortin classNetPackage- Returns:
- Port of the remote host.
-
getLocalPort
public int getLocalPort()
Return the local port on the connections was stablished- Specified by:
getLocalPortin classNetPackage- Returns:
- Local port.
-
getDate
public java.util.Date getDate()
Return the creation date of the package.- Specified by:
getDatein classNetPackage- Returns:
- Creation date of the package.
-
getActionEvent
public NetPackage.ActionEvent getActionEvent()
Return the action event.- Specified by:
getActionEventin classNetPackage- Returns:
- Action event.
-
getPackageStatus
public NetPackage.PackageStatus getPackageStatus()
Return the status of the package.- Specified by:
getPackageStatusin classNetPackage- Returns:
- Package's status.
-
setPackageStatus
public void setPackageStatus(NetPackage.PackageStatus packageStatus)
Set a new package status.- Specified by:
setPackageStatusin classNetPackage- Parameters:
packageStatus- Package's status
-
-