info.aduna.gee.spectacle.webserver
Class ChannelUtil

java.lang.Object
  extended by info.aduna.gee.spectacle.webserver.ChannelUtil

public class ChannelUtil
extends Object

Class ChannelUtil provides some utility methods to make working with Channels easier.


Constructor Summary
ChannelUtil()
           
 
Method Summary
static String htmlProtect(String text)
          Replace HTML reserved characters by their HTML equivalents.
static String toLabelString(Set labels)
          Convert a set of labels to a String, suitable for setting on a Section or Entry.
static String toRuleString(Set rules, boolean joinWithAnd)
          Convert a set of label rules into one rule, suitable for using in overview Entries, for example.
static String urlProtect(String text)
          Replace URL reserved characters by their URL equivalents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelUtil

public ChannelUtil()
Method Detail

toRuleString

public static String toRuleString(Set rules,
                                  boolean joinWithAnd)
Convert a set of label rules into one rule, suitable for using in overview Entries, for example.


toLabelString

public static String toLabelString(Set labels)
Convert a set of labels to a String, suitable for setting on a Section or Entry.


htmlProtect

public static String htmlProtect(String text)
Replace HTML reserved characters by their HTML equivalents.


urlProtect

public static String urlProtect(String text)
Replace URL reserved characters by their URL equivalents.



Copyright © 1997-2008 Aduna. All Rights Reserved.