net.jradius.log
Class RadiusLogEntry

java.lang.Object
  extended by net.jradius.log.RadiusLogEntry
All Implemented Interfaces:
Serializable, net.jradius.log.JRadiusLogEntry

public class RadiusLogEntry
extends Object
implements net.jradius.log.JRadiusLogEntry

The JRadius Log Entry Object (bean).

Author:
David Bird
See Also:
Serialized Form

Field Summary
protected  String clientIPAddress
           
protected  Integer code
           
protected  boolean committed
           
protected  boolean finished
           
protected  String inboundReply
           
protected  String inboundRequest
           
protected  Date lastUpdate
           
protected  String message
           
protected  String nasIdentifier
           
protected  String outboundReply
           
protected  String outboundRequest
           
protected  String packetId
           
protected  String realm
           
protected  net.jradius.session.JRadiusSession session
           
protected  String type
           
protected  Integer userId
           
protected  String userName
           
 
Constructor Summary
RadiusLogEntry()
           
RadiusLogEntry(net.jradius.session.JRadiusSession session, String packetId)
           
 
Method Summary
 void addMessage(String message)
           
 String getClientIPAddress()
           
 Integer getCode()
           
 String getInboundReply()
           
 String getInboundRequest()
           
 Date getLastUpdate()
           
 String getMessage()
           
 String getNasIdentifier()
           
 String getOutboundReply()
           
 String getOutboundRequest()
           
 String getPacketId()
           
 String getRealm()
           
 String getSessionKey()
           
 String getType()
           
 Integer getUserId()
           
 String getUserName()
           
 void init(net.jradius.server.JRadiusRequest request, net.jradius.session.JRadiusSession session)
           
 boolean isCommitted()
           
 boolean isFinished()
           
 void setClientIPAddress(String clientIP)
           
 void setCode(Integer code)
           
 void setCommitted(boolean committed)
           
 void setFinished(boolean finished)
           
 void setInboundReply(String inboundReply)
           
 void setInboundRequest(String inboundRequest)
           
 void setLastUpdate(Date lastUpdate)
           
 void setMessage(String message)
           
 void setNasIdentifier(String nasId)
           
 void setOutboundReply(String outboundReply)
           
 void setOutboundRequest(String outboundRequest)
           
 void setPacketId(String packetId)
           
 void setRealm(String realm)
           
 void setType(net.jradius.server.JRadiusRequest request)
           
 void setType(String type)
           
 void setUserId(Integer userId)
           
 void setUserName(String userName)
           
protected  Object setValue(Object n, Object o)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

session

protected transient net.jradius.session.JRadiusSession session

code

protected Integer code

type

protected String type

message

protected String message

packetId

protected String packetId

clientIPAddress

protected String clientIPAddress

nasIdentifier

protected String nasIdentifier

userName

protected String userName

realm

protected String realm

userId

protected Integer userId

inboundRequest

protected String inboundRequest

outboundRequest

protected String outboundRequest

inboundReply

protected String inboundReply

outboundReply

protected String outboundReply

finished

protected boolean finished

committed

protected boolean committed

lastUpdate

protected Date lastUpdate
Constructor Detail

RadiusLogEntry

public RadiusLogEntry()

RadiusLogEntry

public RadiusLogEntry(net.jradius.session.JRadiusSession session,
                      String packetId)
Method Detail

init

public void init(net.jradius.server.JRadiusRequest request,
                 net.jradius.session.JRadiusSession session)
          throws net.jradius.exception.RadiusException
Specified by:
init in interface net.jradius.log.JRadiusLogEntry
Throws:
net.jradius.exception.RadiusException

setValue

protected Object setValue(Object n,
                          Object o)

getSessionKey

public String getSessionKey()
Returns:
Returns the sessionKey.

getCode

public Integer getCode()
Returns:
Returns the code.

setCode

public void setCode(Integer code)
Specified by:
setCode in interface net.jradius.log.JRadiusLogEntry
Parameters:
code - The code to set.

getType

public String getType()
Returns:
Returns the type.

setType

public void setType(String type)
Specified by:
setType in interface net.jradius.log.JRadiusLogEntry
Parameters:
type - The type to set.

setType

public void setType(net.jradius.server.JRadiusRequest request)
             throws net.jradius.exception.RadiusException
Throws:
net.jradius.exception.RadiusException

getMessage

public String getMessage()
Returns:
Returns the message.

setMessage

public void setMessage(String message)
Parameters:
message - The message to set.

addMessage

public void addMessage(String message)
Specified by:
addMessage in interface net.jradius.log.JRadiusLogEntry

getClientIPAddress

public String getClientIPAddress()
Returns:
Returns the clientIP.

setClientIPAddress

public void setClientIPAddress(String clientIP)
Parameters:
clientIP - The clientIP to set.

getNasIdentifier

public String getNasIdentifier()
Returns:
Returns the nasId.

setNasIdentifier

public void setNasIdentifier(String nasId)
Parameters:
nasId - The nasId to set.

getUserName

public String getUserName()

setUserName

public void setUserName(String userName)

getRealm

public String getRealm()

setRealm

public void setRealm(String realm)

getUserId

public Integer getUserId()
Returns:
Returns the userId.

setUserId

public void setUserId(Integer userId)
Parameters:
userId - The userId to set.

getPacketId

public String getPacketId()
Returns:
Returns the packetId.

setPacketId

public void setPacketId(String packetId)
Parameters:
packetId - The packetId to set.

getInboundReply

public String getInboundReply()
Specified by:
getInboundReply in interface net.jradius.log.JRadiusLogEntry
Returns:
Returns the inboundReply.

setInboundReply

public void setInboundReply(String inboundReply)
Specified by:
setInboundReply in interface net.jradius.log.JRadiusLogEntry
Parameters:
inboundReply - The inboundReply to set.

getInboundRequest

public String getInboundRequest()
Specified by:
getInboundRequest in interface net.jradius.log.JRadiusLogEntry
Returns:
Returns the inboundRequest.

setInboundRequest

public void setInboundRequest(String inboundRequest)
Specified by:
setInboundRequest in interface net.jradius.log.JRadiusLogEntry
Parameters:
inboundRequest - The inboundRequest to set.

getOutboundReply

public String getOutboundReply()
Specified by:
getOutboundReply in interface net.jradius.log.JRadiusLogEntry
Returns:
Returns the outboundReply.

setOutboundReply

public void setOutboundReply(String outboundReply)
Specified by:
setOutboundReply in interface net.jradius.log.JRadiusLogEntry
Parameters:
outboundReply - The outboundReply to set.

getOutboundRequest

public String getOutboundRequest()
Specified by:
getOutboundRequest in interface net.jradius.log.JRadiusLogEntry
Returns:
Returns the outboundRequest.

setOutboundRequest

public void setOutboundRequest(String outboundRequest)
Specified by:
setOutboundRequest in interface net.jradius.log.JRadiusLogEntry
Parameters:
outboundRequest - The outboundRequest to set.

isFinished

public boolean isFinished()
Specified by:
isFinished in interface net.jradius.log.JRadiusLogEntry
Returns:
Returns the finished.

setFinished

public void setFinished(boolean finished)
Parameters:
finished - The finished to set.

isCommitted

public boolean isCommitted()
Specified by:
isCommitted in interface net.jradius.log.JRadiusLogEntry
Returns:
Returns the committed.

setCommitted

public void setCommitted(boolean committed)
Specified by:
setCommitted in interface net.jradius.log.JRadiusLogEntry
Parameters:
committed - The committed to set.

toString

public String toString()
Overrides:
toString in class Object

getLastUpdate

public Date getLastUpdate()
Specified by:
getLastUpdate in interface net.jradius.log.JRadiusLogEntry

setLastUpdate

public void setLastUpdate(Date lastUpdate)
Specified by:
setLastUpdate in interface net.jradius.log.JRadiusLogEntry


Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.