geekblog 0.0.1-dev

geekblog
Class Utils

java.lang.Object
  |
  +--geekblog.Utils

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String getCalendar(java.util.Calendar workingDate, DataManager dataMgr)
           
static java.lang.String getRootURL(javax.servlet.http.HttpServletRequest request)
          Figure out what the root URL of the weblog is.
static java.lang.String scrubHTML(java.lang.String html)
          Scrub passed string (assumed to be HTML) for malicious tags; simply escape the tag in the event it doesn't fit into the allowed set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getRootURL

public static java.lang.String getRootURL(javax.servlet.http.HttpServletRequest request)
Figure out what the root URL of the weblog is. Can't just use the name of the servlet context, as we might be co-located deep inside another servlet context.


scrubHTML

public static java.lang.String scrubHTML(java.lang.String html)
Scrub passed string (assumed to be HTML) for malicious tags; simply escape the tag in the event it doesn't fit into the allowed set. TODO: In the future, allow the set to be user-configurable?


getCalendar

public static java.lang.String getCalendar(java.util.Calendar workingDate,
                                           DataManager dataMgr)

geekblog 0.0.1-dev

Copyright © 2003 Ted Neward. All Rights Reserved.