org.openmdx.uses.net.sourceforge.jradiusclient.packets
Class AccountingRequest

java.lang.Object
  extended by org.openmdx.uses.net.sourceforge.jradiusclient.RadiusPacket
      extended by org.openmdx.uses.net.sourceforge.jradiusclient.packets.AccountingRequest
Direct Known Subclasses:
DisableAccountingRequest, EnableAccountingRequest, StartAccountingRequest, StopAccountingRequest, UpdateAccountingRequest

public class AccountingRequest
extends RadiusPacket

Released under the LGPL

Version:
$Revision: 1.3 $
Author:
Robert J. Loihl

Field Summary
static byte[] DISABLE_ACCOUNTING_SERVICE_TYPE
           
static byte[] ENABLE_ACCOUNTING_SERVICE_TYPE
           
static byte[] START_ACCOUNTING_SERVICE_TYPE
           
static byte[] STOP_ACCOUNTING_SERVICE_TYPE
           
static byte[] UPDATE_ACCOUNTING_SERVICE_TYPE
           
 
Fields inherited from class org.openmdx.uses.net.sourceforge.jradiusclient.RadiusPacket
ACCESS_ACCEPT, ACCESS_CHALLENGE, ACCESS_REJECT, ACCESS_REQUEST, ACCOUNTING_MESSAGE, ACCOUNTING_REQUEST, ACCOUNTING_RESPONSE, ACCOUNTING_STATUS, EMPTYSTRING, MAX_PACKET_LENGTH, MIN_PACKET_LENGTH, PASSWORD_ACCEPT, PASSWORD_REJECT, PASSWORD_REQUEST, RADIUS_HEADER_LENGTH, RESERVED, STATUS_CLIENT, STATUS_SERVER
 
Constructor Summary
AccountingRequest(String userName, byte[] serviceType, String sessionId)
          construct an account request packet for this session
 
Method Summary
 void validateAttribute(RadiusAttribute radiusAttribute)
          This method implements a callback from the super class RadiusPacket to validate input
 
Methods inherited from class org.openmdx.uses.net.sourceforge.jradiusclient.RadiusPacket
getAttribute, getAttributeBytes, getAttributeBytes, getAttributes, getPacketIdentifier, getPacketType, getSocketIndex, setAttribute, setAttributes, setSocketIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_ACCOUNTING_SERVICE_TYPE

public static final byte[] START_ACCOUNTING_SERVICE_TYPE

STOP_ACCOUNTING_SERVICE_TYPE

public static final byte[] STOP_ACCOUNTING_SERVICE_TYPE

UPDATE_ACCOUNTING_SERVICE_TYPE

public static final byte[] UPDATE_ACCOUNTING_SERVICE_TYPE

ENABLE_ACCOUNTING_SERVICE_TYPE

public static final byte[] ENABLE_ACCOUNTING_SERVICE_TYPE

DISABLE_ACCOUNTING_SERVICE_TYPE

public static final byte[] DISABLE_ACCOUNTING_SERVICE_TYPE
Constructor Detail

AccountingRequest

public AccountingRequest(String userName,
                         byte[] serviceType,
                         String sessionId)
                  throws InvalidParameterException
construct an account request packet for this session

Parameters:
userName -
serviceType -
Throws:
InvalidParameterException
Method Detail

validateAttribute

public void validateAttribute(RadiusAttribute radiusAttribute)
                       throws InvalidParameterException
This method implements a callback from the super class RadiusPacket to validate input

Overrides:
validateAttribute in class RadiusPacket
Parameters:
radiusAttribute - the attribute to validate
Throws:
InvalidParameterException - if the RadiusAttribute does not pass validation


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.