at.gv.egiz.pdfas.utils
Class WebUtils

java.lang.Object
  extended byat.gv.egiz.pdfas.utils.WebUtils

public final class WebUtils
extends Object

Author:
tknall

Method Summary
static String addJSessionID(String url, HttpServletRequest request)
          Unlike HttpServletResponse.encodeURL(String) that adds only a entry to the given url if needed, this method always adds the session id (except if already present within the url.
static String addJSessionID(String url, HttpSession session)
          Unlike HttpServletResponse.encodeURL(String) that adds only a entry to the given url if needed, this method always adds the session id (except if already present within the url.
static String buildRetrieveSignatureDataURL(HttpServletRequest request, HttpServletResponse response)
          Either dynamically creates locref content url or uses a url provides by the pdf-as configuration (key ).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addJSessionID

public static String addJSessionID(String url,
                                   HttpSession session)
Unlike HttpServletResponse.encodeURL(String) that adds only a entry to the given url if needed, this method always adds the session id (except if already present within the url.

Parameters:
url - The given url.
session - The HttpSession.
Returns:
The given url plus a session id.

addJSessionID

public static String addJSessionID(String url,
                                   HttpServletRequest request)
Unlike HttpServletResponse.encodeURL(String) that adds only a entry to the given url if needed, this method always adds the session id (except if already present within the url.

Parameters:
url - The given url.
request - The HttpServletRequest.
Returns:
The given url plus a session id.

buildRetrieveSignatureDataURL

public static String buildRetrieveSignatureDataURL(HttpServletRequest request,
                                                   HttpServletResponse response)
Either dynamically creates locref content url or uses a url provides by the pdf-as configuration (key ).

Parameters:
request - The HttpServletRequest.
response - The HttpServletResponse.
Returns:
The retrieve signature data url.


Copyright © 2006-2010. All Rights Reserved.