com.atlassian.gadgets.renderer.internal.http
Class DelegatingWhitelist
java.lang.Object
com.atlassian.gadgets.renderer.internal.http.DelegatingWhitelist
- All Implemented Interfaces:
- Whitelist
public class DelegatingWhitelist
- extends Object
- implements Whitelist
A whitelist which delegates to 1 or more other whitelists and only allows access if one of the delegates allows
access.
|
Method Summary |
boolean |
allows(URI uri)
Returns true if the URI is in the whitelist of remote systems that are appropriate to make
requests to, false otherwise. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingWhitelist
public DelegatingWhitelist(Whitelist whitelist,
Iterable<Whitelist> optionalWhitelists)
allows
public boolean allows(URI uri)
- Description copied from interface:
Whitelist
- Returns
true if the URI is in the whitelist of remote systems that are appropriate to make
requests to, false otherwise.
- Specified by:
allows in interface Whitelist
- Parameters:
uri - URI of the remote system to check for whitelisting
- Returns:
true if the URI is in the whitelist, false otherwise
Copyright © 2013 Atlassian. All Rights Reserved.