All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.att.research.xacml.std.StdRequestReference Maven / Gradle / Ivy

/*
 *                        AT&T - PROPRIETARY
 *          THIS FILE CONTAINS PROPRIETARY INFORMATION OF
 *        AT&T AND IS NOT TO BE DISCLOSED OR USED EXCEPT IN
 *             ACCORDANCE WITH APPLICABLE AGREEMENTS.
 *
 *          Copyright (c) 2013 AT&T Knowledge Ventures
 *              Unpublished and Not for Publication
 *                     All Rights Reserved
 */
package com.att.research.xacml.std;

import java.util.Collection;

import com.att.research.xacml.api.RequestAttributesReference;
import com.att.research.xacml.api.RequestReference;
import com.att.research.xacml.util.Wrapper;

/**
 * Immutable implementation of the {@link com.att.research.xacml.api.RequestReference} interface.
 * 
 * @author Christopher A. Rath
 * @version $Revision$
 */
public class StdRequestReference extends Wrapper implements RequestReference {
	/**
	 * Creates a new immutable StdRequestReference that wraps the given {@link com.att.research.xacml.api.RequestReference}.
	 * 
	 * @param requestReference the RequestReference to wrap.
	 */
	public StdRequestReference(RequestReference requestReference) {
		super(requestReference);
	}
	
	/**
	 * Creates a new StdRequestReference with a copy of the given Collection of {@link com.att.research.xacml.api.RequestAttributesReference}s.
	 * 
	 * @param requestAttributesReferences the Collection of RequestAttributesReferences to copy into the new StdRequestReference>
	 */
	public StdRequestReference(Collection requestAttributesReferences) {
		this(new StdMutableRequestReference(requestAttributesReferences));
	}
	
	@Override
	public Collection getAttributesReferences() {
		return this.getWrappedObject().getAttributesReferences();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy