/** * @param decision by the PEP * @param request the original request * @param obligations by the PEP * @throws IllegalArgumentException if descision out of range * @throws NullPointerException if request or obligation are null */ public PDPResponse(final int decision, final PDPRequest request, final Collection<Obligation> obligations) throws IllegalArgumentException, NullPointerException { checkDecision(decision); if (request == null) { throw new NullPointerException("request must not be null"); } if (obligations == null) { throw new NullPointerException("obligations must not be null"); } this.m_decision = decision; this.m_request = request; this.m_obligations.addAll(obligations); }