edu.uiuc.cs.net.DPRPManager
Class DPRPOfferException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--edu.uiuc.cs.net.DPRPManager.DPRPException
                    |
                    +--edu.uiuc.cs.net.DPRPManager.DPRPOfferException
All Implemented Interfaces:
java.io.Serializable

class DPRPOfferException
extends DPRPException

This exception is only thrown by the handleNewRequest() method, and it serves to put all of the port-cleanup code in one place.

Version:
1.0 - October 30th, 2001
Author:
Andy Reitz (areitz@cs.uiuc.edu)
See Also:
Serialized Form

Field Summary
private  java.net.InetAddress cliIP
          The client's IP address.
private  int cliPort
          The client's port, so that an error-message can be generated.
private  java.lang.String errorText
          The error message associated with this exception.
private  int offeredPort
          The reserved port.
private  byte offeredProtocol
          The protocol type of the reserved port.
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
Constructor Summary
DPRPOfferException(java.net.InetAddress ci, int cp, int op, byte opr, java.lang.String et)
          Constructs a new offer exception.
 
Method Summary
 java.net.InetAddress getClientIP()
          Gets the client's IP address.
 int getOfferedPort()
          Returns the port that was offered, so that it can be cleaned up.
 byte getProtocol()
          Returns the protocol of the reservation.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

cliIP

private java.net.InetAddress cliIP
The client's IP address.

cliPort

private int cliPort
The client's port, so that an error-message can be generated.

errorText

private java.lang.String errorText
The error message associated with this exception.

offeredPort

private int offeredPort
The reserved port.

offeredProtocol

private byte offeredProtocol
The protocol type of the reserved port.
Constructor Detail

DPRPOfferException

public DPRPOfferException(java.net.InetAddress ci,
                          int cp,
                          int op,
                          byte opr,
                          java.lang.String et)
Constructs a new offer exception.
Parameters:
ci - Client's IP address.
cp - Client's session port.
op - The port that we have offered (and in all likelyhood, are now recending).
opr - The protocol on the offered port.
et - The error-text that accompanies this exception.
Method Detail

getOfferedPort

public int getOfferedPort()
Returns the port that was offered, so that it can be cleaned up.

getClientIP

public java.net.InetAddress getClientIP()
Gets the client's IP address.

getProtocol

public byte getProtocol()
Returns the protocol of the reservation.