org.portletbridge
Class UrlUtils

java.lang.Object
  extended by org.portletbridge.UrlUtils

public class UrlUtils
extends java.lang.Object

Author:
JMcCrindle

Constructor Summary
UrlUtils()
           
 
Method Summary
static java.lang.String getPath(java.lang.String url)
           
static java.lang.String getProtocol(java.lang.String currentUrl)
           
static java.lang.String getProtocolHostPort(java.lang.String currentUrl)
           
static boolean isAbsoluteHttp(java.lang.String url)
           
static boolean isAbsoluteWithHostHttp(java.lang.String url)
           
static boolean isFull(java.lang.String url)
           
static boolean isFullHttp(java.lang.String url)
           
static boolean isRelativeHttp(java.lang.String url)
           
static java.lang.String rewriteRelative(java.lang.String baseUrl, java.lang.String resource)
           
static java.lang.String safeAppend(java.lang.String path, java.lang.String resource)
           
 
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

getPath

public static java.lang.String getPath(java.lang.String url)

isRelativeHttp

public static boolean isRelativeHttp(java.lang.String url)

isAbsoluteHttp

public static boolean isAbsoluteHttp(java.lang.String url)

isAbsoluteWithHostHttp

public static boolean isAbsoluteWithHostHttp(java.lang.String url)

isFull

public static boolean isFull(java.lang.String url)

isFullHttp

public static boolean isFullHttp(java.lang.String url)

safeAppend

public static java.lang.String safeAppend(java.lang.String path,
                                          java.lang.String resource)

rewriteRelative

public static java.lang.String rewriteRelative(java.lang.String baseUrl,
                                               java.lang.String resource)

getProtocolHostPort

public static java.lang.String getProtocolHostPort(java.lang.String currentUrl)
Parameters:
currentUrl -
Returns:

getProtocol

public static java.lang.String getProtocol(java.lang.String currentUrl)
Parameters:
currentUrl -
Returns:


Copyright © 2002-2006 Grape Design Limited. All Rights Reserved.