📄 wsutils.html
字号:
<P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="WSUtils()"><!-- --></A><H3>WSUtils</H3><PRE>public <B>WSUtils</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getReturn(org.dom4j.Element)"><!-- --></A><H3>getReturn</H3><PRE>protected static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getReturn</B>(org.dom4j.Element element)</PRE><DL><DD>Returns the text of the first an element with name 'return'.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - the element to search for a return element.<DT><B>Returns:</B><DD>the text of the return element.</DL></DD></DL><HR><A NAME="getElementText(org.dom4j.Node, java.lang.String)"><!-- --></A><H3>getElementText</H3><PRE>protected static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getElementText</B>(org.dom4j.Node node, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE><DL><DD>Returns the text of the first an element with name 'name'.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the element to search for a "name" element.<DD><CODE>name</CODE> - the name of the element to search<DT><B>Returns:</B><DD>the text of the corresponding element</DL></DD></DL><HR><A NAME="modifyElementText(org.dom4j.Node, java.lang.String, java.lang.String)"><!-- --></A><H3>modifyElementText</H3><PRE>protected static void <B>modifyElementText</B>(org.dom4j.Node node, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> newValue)</PRE><DL><DD>Modifies the text of the elmement with name 'name'.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the element to search<DD><CODE>name</CODE> - the name to search<DD><CODE>newValue</CODE> - the new value of the text</DL></DD></DL><HR><A NAME="modifyElementText(org.dom4j.Element, java.lang.String[], java.lang.String)"><!-- --></A><H3>modifyElementText</H3><PRE>protected static void <B>modifyElementText</B>(org.dom4j.Element element, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] path, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> newValue)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="parseStringArray(org.dom4j.Element)"><!-- --></A><H3>parseStringArray</H3><PRE>protected static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>> <B>parseStringArray</B>(org.dom4j.Element element)</PRE><DL><DD>Parse REST responses of the type String[], that are XML of the form: <p/> <something> <return>text1</return> <return>text2</return> <return>text3</return> </something><P><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - Element from REST response to be parsed.<DT><B>Returns:</B><DD>An array of strings from the REST response.</DL></DD></DL><HR><A NAME="parseUsernameArray(org.dom4j.Element)"><!-- --></A><H3>parseUsernameArray</H3><PRE>protected static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>> <B>parseUsernameArray</B>(org.dom4j.Element element)</PRE><DL><DD>Parse REST responses of the type String[] that represent usernames, that are XML of the form: <p/> <something> <return>text1</return> <return>text2</return> <return>text3</return> </something><P><DD><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - Element from REST response to be parsed.<DT><B>Returns:</B><DD>An array of strings from the REST response.</DL></DD></DL><HR><A NAME="marshallList(java.util.List)"><!-- --></A><H3>marshallList</H3><PRE>protected static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>marshallList</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>> data)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="parseDate(java.lang.String)"><!-- --></A><H3>parseDate</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> <B>parseDate</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> date)</PRE><DL><DD>Parses a date of the form 1969-12-31T21:00:00-03:00, or 2008-02-13T18:54:29.147-03:00. If the string is null or there is a problem parsing the date, returns null.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>date</CODE> - the string to parse<DT><B>Returns:</B><DD>the corresponding date, or null if t</DL></DD></DL><HR><A NAME="formatDate(java.util.Date)"><!-- --></A><H3>formatDate</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>formatDate</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> date)</PRE><DL><DD>Formats a date into yyyy-MM-dd'T'HH:mm:ss.SSSZ, for example 2008-02-13T18:54:29.147-03:00<P><DD><DL><DT><B>Parameters:</B><DD><CODE>date</CODE> - the date to format<DT><B>Returns:</B><DD>a string representation of the date</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/jivesoftware/openfire/clearspace/URLUTF8Encoder.html" title="class in org.jivesoftware.openfire.clearspace"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jivesoftware/openfire/clearspace/WSUtils.html" target="_top"><B>FRAMES</B></A> <A HREF="WSUtils.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2003-2008 Jive Software.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -