public class SameOrigin extends Object
| Constructor and Description |
|---|
SameOrigin() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isSameOrigin(URI uri,
URI origin) |
static boolean |
isSameOrigin(URL url,
URL origin) |
public static boolean isSameOrigin(URL url, URL origin)
url - the url to checkorigin - the origin to check against.public static boolean isSameOrigin(URI uri, URI origin) throws MalformedURLException
uri - the uri to checkorigin - the origin to check against.MalformedURLExceptionCopyright © 2018 Atlassian. All rights reserved.