org.apache.wicket.protocol.http
Class RequestUtils

java.lang.Object
  extended by org.apache.wicket.protocol.http.RequestUtils

public final class RequestUtils
extends Object

Wicket Http specific utilities class.


Method Summary
static String decode(String path)
          Deprecated. Use WicketURLDecoder instead.
static void decodeParameters(String queryString, ValueMap params)
          Decode the provided queryString as a series of key/ value pairs and set them in the provided value map.
static void decodeUrlParameters(String queryString, Map<String,String[]> parameters)
          decores url parameters form queryString into parameters map
static String encode(String value)
          Deprecated. Use WicketURLEncoder instead.
static String toAbsolutePath(String relativePagePath)
          Calculates absolute path to url relative to another absolute url.
static String toAbsolutePath(String requestPath, String relativePagePath)
          Calculates absolute path to url relative to another absolute url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decodeParameters

public static void decodeParameters(String queryString,
                                    ValueMap params)
Decode the provided queryString as a series of key/ value pairs and set them in the provided value map.

Parameters:
queryString - string to decode, uses '&' to separate parameters and '=' to separate key from value
params - parameters map to write the found key/ value pairs to

decodeUrlParameters

public static void decodeUrlParameters(String queryString,
                                       Map<String,String[]> parameters)
decores url parameters form queryString into parameters map

Parameters:
queryString -
parameters -

decode

@Deprecated
public static String decode(String path)
Deprecated. Use WicketURLDecoder instead.

Parameters:
path -
Returns:
decoded path

encode

@Deprecated
public static String encode(String value)
Deprecated. Use WicketURLEncoder instead.

Parameters:
value -
Returns:
encoded value

toAbsolutePath

public static final String toAbsolutePath(String relativePagePath)
Calculates absolute path to url relative to another absolute url.

Parameters:
relativePagePath - path, relative to requestPath
Returns:
absolute path for given url

toAbsolutePath

public static final String toAbsolutePath(String requestPath,
                                          String relativePagePath)
Calculates absolute path to url relative to another absolute url. NOTE: this method must be called within a thread processing a wicket request as it depends on RequestCycle threadlocal

Parameters:
requestPath - absolute path.
relativePagePath - path, relative to requestPath
Returns:
absolute path for given url


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.