jerklib
Class RequestedConnection

java.lang.Object
  extended by jerklib.RequestedConnection

public class RequestedConnection
extends Object

Class to encapsulate data about a requested connection,

Author:
mohadib

Constructor Summary
RequestedConnection(String hostName, int port, Profile profile)
          Create new RequestedConnection object
 
Method Summary
 boolean equals(Object o)
           
 String getHostName()
          Get hostname
 int getPort()
          Get port
 Profile getProfile()
          Get profile
 long getTimeRequested()
          Get the time this RequestedConnection was created.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestedConnection

public RequestedConnection(String hostName,
                           int port,
                           Profile profile)
Create new RequestedConnection object

Parameters:
hostName - - hostname to connect to
port - - port to use
profile - - profile to use
Method Detail

getHostName

public String getHostName()
Get hostname

Returns:
hostname

getPort

public int getPort()
Get port

Returns:
port

getProfile

public Profile getProfile()
Get profile

Returns:
profile

getTimeRequested

public long getTimeRequested()
Get the time this RequestedConnection was created.

Returns:
time

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object