com.atlassian.confluence.util
Class UrlUtils

java.lang.Object
  extended by com.atlassian.confluence.util.UrlUtils

public class UrlUtils
extends java.lang.Object

Contains url utility methods.

Since:
5.2

Constructor Summary
UrlUtils()
           
 
Method Summary
static boolean isSameOrigin(java.net.URL url, java.net.URL origin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlUtils

public UrlUtils()
Method Detail

isSameOrigin

public static boolean isSameOrigin(java.net.URL url,
                                   java.net.URL origin)
Parameters:
url - the url to check
origin - the origin to check against.
Returns:
true if the given url is the same origin as the given origin url otherwise returns false.


Copyright © 2003-2013 Atlassian. All Rights Reserved.