|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.webchat.utils.WebUtils
public final class WebUtils
The WebUtils
class is a utility class for some of the most
mundane procedures in the WebChat client and in servlet programming. This
will be moved over to a more suitable class down the line. Probably be handled
in the com.jivesoftware.web.utils package to be used throughout Jive.
Method Summary | |
---|---|
static java.lang.String |
applyFilters(java.lang.String body)
Applies all text filters to the given text. |
static java.lang.String |
getMUCServiceName(org.jivesoftware.smack.XMPPConnection con)
Returns the service name for MUC. |
static java.lang.String |
getNickname(org.jivesoftware.smack.packet.Message message)
Returns the nickname of the user who sent the message. |
static boolean |
isAvailable(org.jivesoftware.smack.packet.Presence presence)
|
static boolean |
isNotNull(java.lang.String str)
Check to see if string has been assigned a value. |
static boolean |
isTrue(java.lang.String str)
Checks to see if the String is boolean value and will return the appropriate value |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
replace(java.lang.String string,
java.lang.String oldString,
java.lang.String newString)
Replaces all instances of oldString with newString in string. |
static boolean |
validateChars(java.lang.String text)
Validate the given text |
static boolean |
validateSubject(java.lang.String text)
Validate the given text |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final boolean isNotNull(java.lang.String str)
str
- - the string to check.
public static final boolean isTrue(java.lang.String str)
str
- - the String to check
public static final boolean isAvailable(org.jivesoftware.smack.packet.Presence presence)
public static final boolean validateChars(java.lang.String text)
text
- the text to check
public static final boolean validateSubject(java.lang.String text)
text
- the text to check
public static java.lang.String applyFilters(java.lang.String body)
body
- the body of text to filter.
public static final java.lang.String replace(java.lang.String string, java.lang.String oldString, java.lang.String newString)
string
- the String to search to perform replacements onoldString
- the String that should be replaced by newStringnewString
- the String that will replace all instances of oldString
public static java.lang.String getNickname(org.jivesoftware.smack.packet.Message message)
message
- the message recieved.
public static java.lang.String getMUCServiceName(org.jivesoftware.smack.XMPPConnection con)
public static void main(java.lang.String[] args)
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |