@ApplicationScoped public class OriginValidation extends Object
| Constructor and Description |
|---|
OriginValidation() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowedOrigin(String requestOrigin)
Helper method to check whether requests from the specified origin
must be allowed.
|
public boolean isAllowedOrigin(String requestOrigin)
requestOrigin - origin as reported by the client, null if unknown.true if the origin is allowed, else false.Copyright © 2014–2017 Red Hat, Inc.. All rights reserved.