Top Description Fields Constructors Methods
uk.ac.ed.ph.snuggletex.webapp

public final Class WebUtilities

extends Object
Class Inheritance
Imports
javax.servlet.http.HttpServletRequest

Some general servlet-related utility methods.

(This is a cut down version of the class of the same name in the CST Project)

Author
David McKain
Version
$Revision$

Field Summary

Modifier and TypeField and Description
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
getWithinContextRequestUrl(HttpServletRequest request)

Returns the URL for the given request, starting from AFTER the context path and including path info and query parameters.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

WITHIN_CONTEXT_REQUEST_URL_ATTRIBUTE_NAMEback to summary
public static final String WITHIN_CONTEXT_REQUEST_URL_ATTRIBUTE_NAME

Constructor Detail

WebUtilitiesback to summary
public WebUtilities()

Method Detail

getWithinContextRequestUrlback to summary
public static String getWithinContextRequestUrl(HttpServletRequest request)

Returns the URL for the given request, starting from AFTER the context path and including path info and query parameters.

The result is stored in the HttpServletRequest as an Attribute for later retrieval so as to avoid needed recalculation.