org.n52.security.decision
Class PDPResponseCollection

java.lang.Object
  extended by org.n52.security.decision.PDPResponseCollection
All Implemented Interfaces:
java.io.Serializable

public class PDPResponseCollection
extends java.lang.Object
implements java.io.Serializable

This class encapsulates PDPResponse. All Response for PDPRequests in one PDPRequestCollection should be collected in one PDPResponseCollection.

Version:
$Revision: 1748 $
Author:
Bastian Schaeffer, Marko Reiprecht
See Also:
Serialized Form

Field Summary
protected  java.util.List m_responses
          List of PDPResponse instances.
 
Constructor Summary
PDPResponseCollection()
          Constructor creates a new instance.
PDPResponseCollection(PDPResponse pdpResponse)
          Constructor creates a new instance.
 
Method Summary
 PDPResponseCollection add(PDPResponse response)
          Method adds a response.
 boolean equals(java.lang.Object o)
          Method equals.
 int hashCode()
          Method hashCode.
 boolean isEmpty()
          Method isEmpty.
 java.util.Iterator iterator()
          Method iterator.
 PDPResponseCollection remove(PDPResponse response)
          Method remove.
 int size()
          Method size.
 java.lang.String toString()
          Method toString.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m_responses

protected java.util.List m_responses
List of PDPResponse instances.

Constructor Detail

PDPResponseCollection

public PDPResponseCollection()
Constructor creates a new instance.


PDPResponseCollection

public PDPResponseCollection(PDPResponse pdpResponse)
Constructor creates a new instance.

Parameters:
pdpResponse - the pdpResponse.
Method Detail

add

public PDPResponseCollection add(PDPResponse response)
Method adds a response.

Parameters:
response - the response.
Returns:
PDPResponseCollection.

equals

public boolean equals(java.lang.Object o)
Method equals.

Overrides:
equals in class java.lang.Object
Parameters:
o - the o.
Returns:
boolean.

hashCode

public int hashCode()
Method hashCode.

Overrides:
hashCode in class java.lang.Object
Returns:
int.

toString

public java.lang.String toString()
Method toString.

Overrides:
toString in class java.lang.Object
Returns:
String.

iterator

public java.util.Iterator iterator()
Method iterator.

Returns:
Iterator.

remove

public PDPResponseCollection remove(PDPResponse response)
Method remove.

Parameters:
response - the response.
Returns:
this.

size

public int size()
Method size.

Returns:
int.

isEmpty

public boolean isEmpty()
Method isEmpty.

Returns:
int.


Copyright © 2004-2009 52north.org. All Rights Reserved.