public class IPRangePredicate extends Object implements com.google.common.base.Predicate<org.opensaml.messaging.context.BaseContext>
Predicate that checks if a request is from a set of one or more IPRanges.| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(org.opensaml.messaging.context.BaseContext input) |
void |
setAddressRanges(Iterable<IPRange> ranges)
Set the address ranges to check against.
|
void |
setHttpServletRequest(HttpServletRequest request)
Set the servlet request to evaluate.
|
public void setAddressRanges(@Nonnull @NonnullElements Iterable<IPRange> ranges)
ranges - address ranges to check againstpublic void setHttpServletRequest(@Nonnull HttpServletRequest request)
request - servlet request to evaluatepublic boolean apply(@Nullable org.opensaml.messaging.context.BaseContext input)
apply in interface com.google.common.base.Predicate<org.opensaml.messaging.context.BaseContext>Copyright © 2016 JBoss by Red Hat. All rights reserved.