com.atlassian.core.filters.legacy
Class WordCurlyQuotesRequestWrapper

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by com.atlassian.core.filters.legacy.WordCurlyQuotesRequestWrapper
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public final class WordCurlyQuotesRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper

Uses StringUtils.escapeCP1252(String, String) to replace high-bit punctuation characters with ASCII equivalents in request parameter values.

This is here for legacy functionality if required, but its use is not recommended. Rather, applications should be configured with Unicode request and response encoding.

Since:
4.0

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
WordCurlyQuotesRequestWrapper(javax.servlet.http.HttpServletRequest servletRequest, java.lang.String encoding)
           
 
Method Summary
 java.lang.String getParameter(java.lang.String string)
           
 java.util.Map getParameterMap()
           
 java.lang.String[] getParameterValues(java.lang.String string)
           
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getParameterNames, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getParameterNames, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

WordCurlyQuotesRequestWrapper

public WordCurlyQuotesRequestWrapper(javax.servlet.http.HttpServletRequest servletRequest,
                                     java.lang.String encoding)
Method Detail

getParameter

public final java.lang.String getParameter(java.lang.String string)
Specified by:
getParameter in interface javax.servlet.ServletRequest
Overrides:
getParameter in class javax.servlet.ServletRequestWrapper

getParameterMap

public final java.util.Map getParameterMap()
Specified by:
getParameterMap in interface javax.servlet.ServletRequest
Overrides:
getParameterMap in class javax.servlet.ServletRequestWrapper

getParameterValues

public final java.lang.String[] getParameterValues(java.lang.String string)
Specified by:
getParameterValues in interface javax.servlet.ServletRequest
Overrides:
getParameterValues in class javax.servlet.ServletRequestWrapper


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.