Style Intelligence v12.0

inetsoft.sree
Class ClientInfo

java.lang.Object
  extended by inetsoft.sree.ClientInfo
All Implemented Interfaces:
inetsoft.util.XMLSerializable, Serializable, Cloneable

public class ClientInfo
extends Object
implements Cloneable, Serializable, inetsoft.util.XMLSerializable

Client side information required by report server for authentication. Include user name, client side address and session id.

See Also:
Serialized Form

Field Summary
static String ANONYMOUS
          Anonymous user name.
static String LOCALHOST
          Local host.
 
Constructor Summary
ClientInfo()
          Construct a client side information object.
ClientInfo(String user, String address)
          Construct a client side information object.
ClientInfo(String user, String address, String session)
          Construct a client side information object.
 
Method Summary
 Object clone()
          Clone this object.
 boolean equals(Object obj)
          Compare this client info with the specified object.
 String getIPAddress()
          Returns the client side ip address.
 String getLoginUserName()
          Returns the login user name.
 String getSession()
          Returns the client session id.
 String getUserName()
          Returns the user name.
 int hashCode()
          Returns a hashcode for this object.
 void parseXML(Element elem)
          Parse xml element representation.
 void setLoginUserName(String loginUser)
          Set login user name.
 String toString()
          Returns a string representation of this object.
 String toView()
          Get the view.
 void writeXML(PrintWriter writer)
          Write xml element representation to a print writer.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ANONYMOUS

public static final String ANONYMOUS
Anonymous user name.

See Also:
Constant Field Values

LOCALHOST

public static final String LOCALHOST
Local host.

See Also:
Constant Field Values
Constructor Detail

ClientInfo

public ClientInfo()
Construct a client side information object.


ClientInfo

public ClientInfo(String user,
                  String address)
Construct a client side information object.

Parameters:
user - the user name.
address - the client ip address.

ClientInfo

public ClientInfo(String user,
                  String address,
                  String session)
Construct a client side information object.

Parameters:
user - the user name.
address - the client ip address.
session - the session id.
Method Detail

getUserName

public String getUserName()
Returns the user name.

Returns:
the user name.

getLoginUserName

public String getLoginUserName()
Returns the login user name.

Returns:
the login user name.

setLoginUserName

public void setLoginUserName(String loginUser)
Set login user name.

Parameters:
loginUser - the specified login user name.

getIPAddress

public String getIPAddress()
Returns the client side ip address.

Returns:
the ip address.

getSession

public String getSession()
Returns the client session id.


equals

public boolean equals(Object obj)
Compare this client info with the specified object. Returns true if the object passed in matches the client info represented by this object.

Overrides:
equals in class Object
Parameters:
obj - another object to comapred.
Returns:
true if the object passed in matches the client info represented by this object.

hashCode

public int hashCode()
Returns a hashcode for this object.

Overrides:
hashCode in class Object
Returns:
a hashcode for this object.

toString

public String toString()
Returns a string representation of this object.

Overrides:
toString in class Object

toView

public String toView()
Get the view.


clone

public Object clone()
Clone this object.

Overrides:
clone in class Object

writeXML

public void writeXML(PrintWriter writer)
Write xml element representation to a print writer.

Specified by:
writeXML in interface inetsoft.util.XMLSerializable
Parameters:
writer - the specified print writer.

parseXML

public void parseXML(Element elem)
              throws Exception
Parse xml element representation.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Parameters:
elem - the specified xml element representation.
Throws:
Exception

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.