http://git-wip-us.apache.org/repos/asf/sling-site/blob/c1fb7b2c/apidocs/sling5/org/apache/sling/commons/json/class-use/JSONObject.html ---------------------------------------------------------------------- diff --git a/apidocs/sling5/org/apache/sling/commons/json/class-use/JSONObject.html b/apidocs/sling5/org/apache/sling/commons/json/class-use/JSONObject.html new file mode 100644 index 0000000..a646005 --- /dev/null +++ b/apidocs/sling5/org/apache/sling/commons/json/class-use/JSONObject.html @@ -0,0 +1,489 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!--NewPage--> +<HTML> +<HEAD> +<!-- Generated by javadoc (build 1.6.0_10) on Mon May 11 08:55:08 CEST 2009 --> +<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<TITLE> +Uses of Class org.apache.sling.commons.json.JSONObject (Apache Sling Aggregate 5-incubator API) +</TITLE> + +<META NAME="date" CONTENT="2009-05-11"> + +<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> + +<SCRIPT type="text/javascript"> +function windowTitle() +{ + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="Uses of Class org.apache.sling.commons.json.JSONObject (Apache Sling Aggregate 5-incubator API)"; + } +} +</SCRIPT> +<NOSCRIPT> +</NOSCRIPT> + +</HEAD> + +<BODY BGCOLOR="white" onload="windowTitle();"> +<HR> + + +<!-- ========= START OF TOP NAVBAR ======= --> +<A NAME="navbar_top"><!-- --></A> +<A HREF="#skip-navbar_top" 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_top_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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</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> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + PREV + NEXT</FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../../index.html?org/apache/sling/commons/json//class-useJSONObject.html" target="_top"><B>FRAMES</B></A> + <A HREF="JSONObject.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> +</TABLE> +<A NAME="skip-navbar_top"></A> +<!-- ========= END OF TOP NAVBAR ========= --> + +<HR> +<CENTER> +<H2> +<B>Uses of Class<br>org.apache.sling.commons.json.JSONObject</B></H2> +</CENTER> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +Packages that use <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><A HREF="#org.apache.sling.commons.json"><B>org.apache.sling.commons.json</B></A></TD> +<TD> </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><A HREF="#org.apache.sling.commons.json.http"><B>org.apache.sling.commons.json.http</B></A></TD> +<TD> </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><A HREF="#org.apache.sling.commons.json.jcr"><B>org.apache.sling.commons.json.jcr</B></A></TD> +<TD> </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><A HREF="#org.apache.sling.commons.json.util"><B>org.apache.sling.commons.json.util</B></A></TD> +<TD> </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><A HREF="#org.apache.sling.commons.json.xml"><B>org.apache.sling.commons.json.xml</B></A></TD> +<TD> </TD> +</TR> +</TABLE> + +<P> +<A NAME="org.apache.sling.commons.json"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +Uses of <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> in <A HREF="../../../../../../org/apache/sling/commons/json/package-summary.html">org.apache.sling.commons.json</A></FONT></TH> +</TR> +</TABLE> + +<P> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../org/apache/sling/commons/json/package-summary.html">org.apache.sling.commons.json</A> that return <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONObject.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#accumulate(java.lang.String, java.lang.Object)">accumulate</A></B>(java.lang.String key, + java.lang.Object value)</CODE> + +<BR> + Accumulate values under a key.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONObject.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#append(java.lang.String, java.lang.Object)">append</A></B>(java.lang.String key, + java.lang.Object value)</CODE> + +<BR> + Append values to the array under a key.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONArray.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONArray.html#getJSONObject(int)">getJSONObject</A></B>(int index)</CODE> + +<BR> + Get the JSONObject associated with an index.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONObject.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#getJSONObject(java.lang.String)">getJSONObject</A></B>(java.lang.String key)</CODE> + +<BR> + Get the JSONObject value associated with a key.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONArray.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONArray.html#optJSONObject(int)">optJSONObject</A></B>(int index)</CODE> + +<BR> + Get the optional JSONObject associated with an index.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONObject.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#optJSONObject(java.lang.String)">optJSONObject</A></B>(java.lang.String key)</CODE> + +<BR> + Get an optional JSONObject associated with a key.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONObject.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#put(java.lang.String, boolean)">put</A></B>(java.lang.String key, + boolean value)</CODE> + +<BR> + Put a key/boolean pair in the JSONObject.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONObject.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#put(java.lang.String, java.util.Collection)">put</A></B>(java.lang.String key, + java.util.Collection<?> value)</CODE> + +<BR> + Put a key/value pair in the JSONObject, where the value will be a + JSONArray which is produced from a Collection.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONObject.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#put(java.lang.String, double)">put</A></B>(java.lang.String key, + double value)</CODE> + +<BR> + Put a key/double pair in the JSONObject.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONObject.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#put(java.lang.String, int)">put</A></B>(java.lang.String key, + int value)</CODE> + +<BR> + Put a key/int pair in the JSONObject.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONObject.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#put(java.lang.String, long)">put</A></B>(java.lang.String key, + long value)</CODE> + +<BR> + Put a key/long pair in the JSONObject.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONObject.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#put(java.lang.String, java.util.Map)">put</A></B>(java.lang.String key, + java.util.Map<java.lang.String,?> value)</CODE> + +<BR> + Put a key/value pair in the JSONObject, where the value will be a + JSONObject which is produced from a Map.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONObject.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#put(java.lang.String, java.lang.Object)">put</A></B>(java.lang.String key, + java.lang.Object value)</CODE> + +<BR> + Put a key/value pair in the JSONObject.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONObject.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#putOpt(java.lang.String, java.lang.Object)">putOpt</A></B>(java.lang.String key, + java.lang.Object value)</CODE> + +<BR> + Put a key/value pair in the JSONObject, but only if the + key and the value are both non-null.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>JSONArray.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONArray.html#toJSONObject(org.apache.sling.commons.json.JSONArray)">toJSONObject</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> names)</CODE> + +<BR> + Produce a JSONObject by combining a JSONArray of names with the values + of this JSONArray.</TD> +</TR> +</TABLE> + +<P> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left" COLSPAN="2">Constructors in <A HREF="../../../../../../org/apache/sling/commons/json/package-summary.html">org.apache.sling.commons.json</A> with parameters of type <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#JSONObject(org.apache.sling.commons.json.JSONObject, java.lang.String[])">JSONObject</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> jo, + java.lang.String[] sa)</CODE> + +<BR> + Construct a JSONObject from a subset of another JSONObject.</TD> +</TR> +</TABLE> + +<P> +<A NAME="org.apache.sling.commons.json.http"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +Uses of <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> in <A HREF="../../../../../../org/apache/sling/commons/json/http/package-summary.html">org.apache.sling.commons.json.http</A></FONT></TH> +</TR> +</TABLE> + +<P> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../org/apache/sling/commons/json/http/package-summary.html">org.apache.sling.commons.json.http</A> that return <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>HTTP.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/http/HTTP.html#toJSONObject(java.lang.String)">toJSONObject</A></B>(java.lang.String string)</CODE> + +<BR> + Convert an HTTP header string into a JSONObject.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>CookieList.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/http/CookieList.html#toJSONObject(java.lang.String)">toJSONObject</A></B>(java.lang.String string)</CODE> + +<BR> + Convert a cookie list into a JSONObject.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>Cookie.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/http/Cookie.html#toJSONObject(java.lang.String)">toJSONObject</A></B>(java.lang.String string)</CODE> + +<BR> + Convert a cookie specification string into a JSONObject.</TD> +</TR> +</TABLE> + +<P> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../org/apache/sling/commons/json/http/package-summary.html">org.apache.sling.commons.json.http</A> with parameters of type <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B>HTTP.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/http/HTTP.html#toString(org.apache.sling.commons.json.JSONObject)">toString</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> o)</CODE> + +<BR> + Convert a JSONObject into an HTTP header.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B>CookieList.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/http/CookieList.html#toString(org.apache.sling.commons.json.JSONObject)">toString</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> o)</CODE> + +<BR> + Convert a JSONObject into a cookie list.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B>Cookie.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/http/Cookie.html#toString(org.apache.sling.commons.json.JSONObject)">toString</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> o)</CODE> + +<BR> + Convert a JSONObject into a cookie specification string.</TD> +</TR> +</TABLE> + +<P> +<A NAME="org.apache.sling.commons.json.jcr"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +Uses of <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> in <A HREF="../../../../../../org/apache/sling/commons/json/jcr/package-summary.html">org.apache.sling.commons.json.jcr</A></FONT></TH> +</TR> +</TABLE> + +<P> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left" COLSPAN="2">Subclasses of <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> in <A HREF="../../../../../../org/apache/sling/commons/json/jcr/package-summary.html">org.apache.sling.commons.json.jcr</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> class</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/jcr/JsonJcrNode.html" title="class in org.apache.sling.commons.json.jcr">JsonJcrNode</A></B></CODE> + +<BR> + This class makes it easy to create a JSON object out of a JCR node.</TD> +</TR> +</TABLE> + +<P> +<A NAME="org.apache.sling.commons.json.util"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +Uses of <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> in <A HREF="../../../../../../org/apache/sling/commons/json/util/package-summary.html">org.apache.sling.commons.json.util</A></FONT></TH> +</TR> +</TABLE> + +<P> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../org/apache/sling/commons/json/util/package-summary.html">org.apache.sling.commons.json.util</A> that return <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>CDL.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/util/CDL.html#rowToJSONObject(org.apache.sling.commons.json.JSONArray, org.apache.sling.commons.json.JSONTokener)">rowToJSONObject</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> names, + <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> x)</CODE> + +<BR> + Produce a JSONObject from a row of comma delimited text, using a + parallel JSONArray of strings to provides the names of the elements.</TD> +</TR> +</TABLE> + +<P> +<A NAME="org.apache.sling.commons.json.xml"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +Uses of <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> in <A HREF="../../../../../../org/apache/sling/commons/json/xml/package-summary.html">org.apache.sling.commons.json.xml</A></FONT></TH> +</TR> +</TABLE> + +<P> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../org/apache/sling/commons/json/xml/package-summary.html">org.apache.sling.commons.json.xml</A> that return <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>XML.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/xml/XML.html#toJSONObject(java.lang.String)">toJSONObject</A></B>(java.lang.String string)</CODE> + +<BR> + Convert a well-formed (but not necessarily valid) XML string into a + JSONObject.</TD> +</TR> +</TABLE> + +<P> +<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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</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> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + PREV + NEXT</FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../../index.html?org/apache/sling/commons/json//class-useJSONObject.html" target="_top"><B>FRAMES</B></A> + <A HREF="JSONObject.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> +</TABLE> +<A NAME="skip-navbar_bottom"></A> +<!-- ======== END OF BOTTOM NAVBAR ======= --> + +<HR> +Copyright © 2007-2009. All Rights Reserved. +</BODY> +</HTML>
http://git-wip-us.apache.org/repos/asf/sling-site/blob/c1fb7b2c/apidocs/sling5/org/apache/sling/commons/json/class-use/JSONString.html ---------------------------------------------------------------------- diff --git a/apidocs/sling5/org/apache/sling/commons/json/class-use/JSONString.html b/apidocs/sling5/org/apache/sling/commons/json/class-use/JSONString.html new file mode 100644 index 0000000..225ec73 --- /dev/null +++ b/apidocs/sling5/org/apache/sling/commons/json/class-use/JSONString.html @@ -0,0 +1,145 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!--NewPage--> +<HTML> +<HEAD> +<!-- Generated by javadoc (build 1.6.0_10) on Mon May 11 08:55:08 CEST 2009 --> +<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<TITLE> +Uses of Interface org.apache.sling.commons.json.JSONString (Apache Sling Aggregate 5-incubator API) +</TITLE> + +<META NAME="date" CONTENT="2009-05-11"> + +<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> + +<SCRIPT type="text/javascript"> +function windowTitle() +{ + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="Uses of Interface org.apache.sling.commons.json.JSONString (Apache Sling Aggregate 5-incubator API)"; + } +} +</SCRIPT> +<NOSCRIPT> +</NOSCRIPT> + +</HEAD> + +<BODY BGCOLOR="white" onload="windowTitle();"> +<HR> + + +<!-- ========= START OF TOP NAVBAR ======= --> +<A NAME="navbar_top"><!-- --></A> +<A HREF="#skip-navbar_top" 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_top_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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/apache/sling/commons/json/JSONString.html" title="interface in org.apache.sling.commons.json"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</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> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + PREV + NEXT</FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../../index.html?org/apache/sling/commons/json//class-useJSONString.html" target="_top"><B>FRAMES</B></A> + <A HREF="JSONString.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> +</TABLE> +<A NAME="skip-navbar_top"></A> +<!-- ========= END OF TOP NAVBAR ========= --> + +<HR> +<CENTER> +<H2> +<B>Uses of Interface<br>org.apache.sling.commons.json.JSONString</B></H2> +</CENTER> +No usage of org.apache.sling.commons.json.JSONString +<P> +<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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/apache/sling/commons/json/JSONString.html" title="interface in org.apache.sling.commons.json"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</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> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + PREV + NEXT</FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../../index.html?org/apache/sling/commons/json//class-useJSONString.html" target="_top"><B>FRAMES</B></A> + <A HREF="JSONString.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> +</TABLE> +<A NAME="skip-navbar_bottom"></A> +<!-- ======== END OF BOTTOM NAVBAR ======= --> + +<HR> +Copyright © 2007-2009. All Rights Reserved. +</BODY> +</HTML> http://git-wip-us.apache.org/repos/asf/sling-site/blob/c1fb7b2c/apidocs/sling5/org/apache/sling/commons/json/class-use/JSONTokener.html ---------------------------------------------------------------------- diff --git a/apidocs/sling5/org/apache/sling/commons/json/class-use/JSONTokener.html b/apidocs/sling5/org/apache/sling/commons/json/class-use/JSONTokener.html new file mode 100644 index 0000000..4639eb4 --- /dev/null +++ b/apidocs/sling5/org/apache/sling/commons/json/class-use/JSONTokener.html @@ -0,0 +1,311 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!--NewPage--> +<HTML> +<HEAD> +<!-- Generated by javadoc (build 1.6.0_10) on Mon May 11 08:55:08 CEST 2009 --> +<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<TITLE> +Uses of Class org.apache.sling.commons.json.JSONTokener (Apache Sling Aggregate 5-incubator API) +</TITLE> + +<META NAME="date" CONTENT="2009-05-11"> + +<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> + +<SCRIPT type="text/javascript"> +function windowTitle() +{ + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="Uses of Class org.apache.sling.commons.json.JSONTokener (Apache Sling Aggregate 5-incubator API)"; + } +} +</SCRIPT> +<NOSCRIPT> +</NOSCRIPT> + +</HEAD> + +<BODY BGCOLOR="white" onload="windowTitle();"> +<HR> + + +<!-- ========= START OF TOP NAVBAR ======= --> +<A NAME="navbar_top"><!-- --></A> +<A HREF="#skip-navbar_top" 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_top_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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</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> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + PREV + NEXT</FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../../index.html?org/apache/sling/commons/json//class-useJSONTokener.html" target="_top"><B>FRAMES</B></A> + <A HREF="JSONTokener.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> +</TABLE> +<A NAME="skip-navbar_top"></A> +<!-- ========= END OF TOP NAVBAR ========= --> + +<HR> +<CENTER> +<H2> +<B>Uses of Class<br>org.apache.sling.commons.json.JSONTokener</B></H2> +</CENTER> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +Packages that use <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><A HREF="#org.apache.sling.commons.json"><B>org.apache.sling.commons.json</B></A></TD> +<TD> </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><A HREF="#org.apache.sling.commons.json.http"><B>org.apache.sling.commons.json.http</B></A></TD> +<TD> </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><A HREF="#org.apache.sling.commons.json.util"><B>org.apache.sling.commons.json.util</B></A></TD> +<TD> </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><A HREF="#org.apache.sling.commons.json.xml"><B>org.apache.sling.commons.json.xml</B></A></TD> +<TD> </TD> +</TR> +</TABLE> + +<P> +<A NAME="org.apache.sling.commons.json"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +Uses of <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> in <A HREF="../../../../../../org/apache/sling/commons/json/package-summary.html">org.apache.sling.commons.json</A></FONT></TH> +</TR> +</TABLE> + +<P> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left" COLSPAN="2">Constructors in <A HREF="../../../../../../org/apache/sling/commons/json/package-summary.html">org.apache.sling.commons.json</A> with parameters of type <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONArray.html#JSONArray(org.apache.sling.commons.json.JSONTokener)">JSONArray</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> x)</CODE> + +<BR> + Construct a JSONArray from a JSONTokener.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html#JSONObject(org.apache.sling.commons.json.JSONTokener)">JSONObject</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> x)</CODE> + +<BR> + Construct a JSONObject from a JSONTokener.</TD> +</TR> +</TABLE> + +<P> +<A NAME="org.apache.sling.commons.json.http"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +Uses of <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> in <A HREF="../../../../../../org/apache/sling/commons/json/http/package-summary.html">org.apache.sling.commons.json.http</A></FONT></TH> +</TR> +</TABLE> + +<P> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left" COLSPAN="2">Subclasses of <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> in <A HREF="../../../../../../org/apache/sling/commons/json/http/package-summary.html">org.apache.sling.commons.json.http</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> class</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/http/HTTPTokener.html" title="class in org.apache.sling.commons.json.http">HTTPTokener</A></B></CODE> + +<BR> + The HTTPTokener extends the JSONTokener to provide additional methods + for the parsing of HTTP headers.</TD> +</TR> +</TABLE> + +<P> +<A NAME="org.apache.sling.commons.json.util"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +Uses of <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> in <A HREF="../../../../../../org/apache/sling/commons/json/util/package-summary.html">org.apache.sling.commons.json.util</A></FONT></TH> +</TR> +</TABLE> + +<P> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../../org/apache/sling/commons/json/util/package-summary.html">org.apache.sling.commons.json.util</A> with parameters of type <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="../../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> +<TD><CODE><B>CDL.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/util/CDL.html#rowToJSONArray(org.apache.sling.commons.json.JSONTokener)">rowToJSONArray</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> x)</CODE> + +<BR> + Produce a JSONArray of strings from a row of comma delimited values.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B>CDL.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/util/CDL.html#rowToJSONObject(org.apache.sling.commons.json.JSONArray, org.apache.sling.commons.json.JSONTokener)">rowToJSONObject</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> names, + <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> x)</CODE> + +<BR> + Produce a JSONObject from a row of comma delimited text, using a + parallel JSONArray of strings to provides the names of the elements.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="../../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> +<TD><CODE><B>CDL.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/util/CDL.html#toJSONArray(org.apache.sling.commons.json.JSONArray, org.apache.sling.commons.json.JSONTokener)">toJSONArray</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> names, + <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> x)</CODE> + +<BR> + Produce a JSONArray of JSONObjects from a comma delimited text string + using a supplied JSONArray as the source of element names.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="../../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> +<TD><CODE><B>CDL.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/util/CDL.html#toJSONArray(org.apache.sling.commons.json.JSONTokener)">toJSONArray</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> x)</CODE> + +<BR> + Produce a JSONArray of JSONObjects from a comma delimited text string, + using the first row as a source of names.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static void</CODE></FONT></TD> +<TD><CODE><B>Validator.</B><B><A HREF="../../../../../../org/apache/sling/commons/json/util/Validator.html#validate(org.apache.sling.commons.json.JSONTokener)">validate</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> x)</CODE> + +<BR> + Strictly validate the JSON text</TD> +</TR> +</TABLE> + +<P> +<A NAME="org.apache.sling.commons.json.xml"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +Uses of <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> in <A HREF="../../../../../../org/apache/sling/commons/json/xml/package-summary.html">org.apache.sling.commons.json.xml</A></FONT></TH> +</TR> +</TABLE> + +<P> + +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left" COLSPAN="2">Subclasses of <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> in <A HREF="../../../../../../org/apache/sling/commons/json/xml/package-summary.html">org.apache.sling.commons.json.xml</A></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE> class</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/xml/XMLTokener.html" title="class in org.apache.sling.commons.json.xml">XMLTokener</A></B></CODE> + +<BR> + The XMLTokener extends the JSONTokener to provide additional methods + for the parsing of XML texts.</TD> +</TR> +</TABLE> + +<P> +<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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</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> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + PREV + NEXT</FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../../index.html?org/apache/sling/commons/json//class-useJSONTokener.html" target="_top"><B>FRAMES</B></A> + <A HREF="JSONTokener.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> +</TABLE> +<A NAME="skip-navbar_bottom"></A> +<!-- ======== END OF BOTTOM NAVBAR ======= --> + +<HR> +Copyright © 2007-2009. All Rights Reserved. +</BODY> +</HTML> http://git-wip-us.apache.org/repos/asf/sling-site/blob/c1fb7b2c/apidocs/sling5/org/apache/sling/commons/json/http/Cookie.html ---------------------------------------------------------------------- diff --git a/apidocs/sling5/org/apache/sling/commons/json/http/Cookie.html b/apidocs/sling5/org/apache/sling/commons/json/http/Cookie.html new file mode 100644 index 0000000..f758268 --- /dev/null +++ b/apidocs/sling5/org/apache/sling/commons/json/http/Cookie.html @@ -0,0 +1,364 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!--NewPage--> +<HTML> +<HEAD> +<!-- Generated by javadoc (build 1.6.0_10) on Mon May 11 08:55:05 CEST 2009 --> +<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<TITLE> +Cookie (Apache Sling Aggregate 5-incubator API) +</TITLE> + +<META NAME="date" CONTENT="2009-05-11"> + +<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> + +<SCRIPT type="text/javascript"> +function windowTitle() +{ + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="Cookie (Apache Sling Aggregate 5-incubator API)"; + } +} +</SCRIPT> +<NOSCRIPT> +</NOSCRIPT> + +</HEAD> + +<BODY BGCOLOR="white" onload="windowTitle();"> +<HR> + + +<!-- ========= START OF TOP NAVBAR ======= --> +<A NAME="navbar_top"><!-- --></A> +<A HREF="#skip-navbar_top" 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_top_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="class-use/Cookie.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + PREV CLASS + <A HREF="../../../../../../org/apache/sling/commons/json/http/CookieList.html" title="class in org.apache.sling.commons.json.http"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../../index.html?org/apache/sling/commons/json/http/Cookie.html" target="_top"><B>FRAMES</B></A> + <A HREF="Cookie.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_top"></A> +<!-- ========= END OF TOP NAVBAR ========= --> + +<HR> +<!-- ======== START OF CLASS DATA ======== --> +<H2> +<FONT SIZE="-1"> +org.apache.sling.commons.json.http</FONT> +<BR> +Class Cookie</H2> +<PRE> +java.lang.Object + <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.sling.commons.json.http.Cookie</B> +</PRE> +<HR> +<DL> +<DT><PRE>public class <B>Cookie</B><DT>extends java.lang.Object</DL> +</PRE> + +<P> +Convert a web browser cookie specification to a JSONObject and back. + JSON and Cookies are both notations for name/value pairs. +<P> + +<P> +<DL> +<DT><B>Version:</B></DT> + <DD>2</DD> +<DT><B>Author:</B></DT> + <DD>JSON.org</DD> +</DL> +<HR> + +<P> + +<!-- ======== CONSTRUCTOR SUMMARY ======== --> + +<A NAME="constructor_summary"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +<B>Constructor Summary</B></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/http/Cookie.html#Cookie()">Cookie</A></B>()</CODE> + +<BR> + </TD> +</TR> +</TABLE> + +<!-- ========== METHOD SUMMARY =========== --> + +<A NAME="method_summary"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +<B>Method Summary</B></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/http/Cookie.html#escape(java.lang.String)">escape</A></B>(java.lang.String string)</CODE> + +<BR> + Produce a copy of a string in which the characters '+', '%', '=', ';' + and control characters are replaced with "%hh".</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/http/Cookie.html#toJSONObject(java.lang.String)">toJSONObject</A></B>(java.lang.String string)</CODE> + +<BR> + Convert a cookie specification string into a JSONObject.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/http/Cookie.html#toString(org.apache.sling.commons.json.JSONObject)">toString</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> o)</CODE> + +<BR> + Convert a JSONObject into a cookie specification string.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/http/Cookie.html#unescape(java.lang.String)">unescape</A></B>(java.lang.String s)</CODE> + +<BR> + Convert <code>%</code><i>hh</i> sequences to single characters, and + convert plus to space.</TD> +</TR> +</TABLE> + <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> +</TR> +</TABLE> + +<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="Cookie()"><!-- --></A><H3> +Cookie</H3> +<PRE> +public <B>Cookie</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="escape(java.lang.String)"><!-- --></A><H3> +escape</H3> +<PRE> +public static java.lang.String <B>escape</B>(java.lang.String string)</PRE> +<DL> +<DD>Produce a copy of a string in which the characters '+', '%', '=', ';' + and control characters are replaced with "%hh". This is a gentle form + of URL encoding, attempting to cause as little distortion to the + string as possible. The characters '=' and ';' are meta characters in + cookies. By convention, they are escaped using the URL-encoding. This is + only a convention, not a standard. Often, cookies are expected to have + encoded values. We encode '=' and ';' because we must. We encode '%' and + '+' because they are meta characters in URL encoding. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>string</CODE> - The source string. +<DT><B>Returns:</B><DD>The escaped result.</DL> +</DD> +</DL> +<HR> + +<A NAME="toJSONObject(java.lang.String)"><!-- --></A><H3> +toJSONObject</H3> +<PRE> +public static <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> <B>toJSONObject</B>(java.lang.String string) + throws <A HREF="../../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> +<DL> +<DD>Convert a cookie specification string into a JSONObject. The string + will contain a name value pair separated by '='. The name and the value + will be unescaped, possibly converting '+' and '%' sequences. The + cookie properties may follow, separated by ';', also represented as + name=value (except the secure property, which does not have a value). + The name will be stored under the key "name", and the value will be + stored under the key "value". This method does not do checking or + validation of the parameters. It only converts the cookie string into + a JSONObject. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>string</CODE> - The cookie specification string. +<DT><B>Returns:</B><DD>A JSONObject containing "name", "value", and possibly other + members. +<DT><B>Throws:</B> +<DD><CODE><A HREF="../../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE></DL> +</DD> +</DL> +<HR> + +<A NAME="toString(org.apache.sling.commons.json.JSONObject)"><!-- --></A><H3> +toString</H3> +<PRE> +public static java.lang.String <B>toString</B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> o) + throws <A HREF="../../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> +<DL> +<DD>Convert a JSONObject into a cookie specification string. The JSONObject + must contain "name" and "value" members. + If the JSONObject contains "expires", "domain", "path", or "secure" + members, they will be appended to the cookie specification string. + All other members are ignored. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>o</CODE> - A JSONObject +<DT><B>Returns:</B><DD>A cookie specification string +<DT><B>Throws:</B> +<DD><CODE><A HREF="../../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE></DL> +</DD> +</DL> +<HR> + +<A NAME="unescape(java.lang.String)"><!-- --></A><H3> +unescape</H3> +<PRE> +public static java.lang.String <B>unescape</B>(java.lang.String s)</PRE> +<DL> +<DD>Convert <code>%</code><i>hh</i> sequences to single characters, and + convert plus to space. +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>s</CODE> - A string that may contain + <code>+</code> <small>(plus)</small> and + <code>%</code><i>hh</i> sequences. +<DT><B>Returns:</B><DD>The unescaped string.</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="class-use/Cookie.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + PREV CLASS + <A HREF="../../../../../../org/apache/sling/commons/json/http/CookieList.html" title="class in org.apache.sling.commons.json.http"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../../index.html?org/apache/sling/commons/json/http/Cookie.html" target="_top"><B>FRAMES</B></A> + <A HREF="Cookie.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> +Copyright © 2007-2009. All Rights Reserved. +</BODY> +</HTML> http://git-wip-us.apache.org/repos/asf/sling-site/blob/c1fb7b2c/apidocs/sling5/org/apache/sling/commons/json/http/CookieList.html ---------------------------------------------------------------------- diff --git a/apidocs/sling5/org/apache/sling/commons/json/http/CookieList.html b/apidocs/sling5/org/apache/sling/commons/json/http/CookieList.html new file mode 100644 index 0000000..a1594ac --- /dev/null +++ b/apidocs/sling5/org/apache/sling/commons/json/http/CookieList.html @@ -0,0 +1,304 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!--NewPage--> +<HTML> +<HEAD> +<!-- Generated by javadoc (build 1.6.0_10) on Mon May 11 08:55:05 CEST 2009 --> +<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<TITLE> +CookieList (Apache Sling Aggregate 5-incubator API) +</TITLE> + +<META NAME="date" CONTENT="2009-05-11"> + +<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> + +<SCRIPT type="text/javascript"> +function windowTitle() +{ + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="CookieList (Apache Sling Aggregate 5-incubator API)"; + } +} +</SCRIPT> +<NOSCRIPT> +</NOSCRIPT> + +</HEAD> + +<BODY BGCOLOR="white" onload="windowTitle();"> +<HR> + + +<!-- ========= START OF TOP NAVBAR ======= --> +<A NAME="navbar_top"><!-- --></A> +<A HREF="#skip-navbar_top" 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_top_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="class-use/CookieList.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../../org/apache/sling/commons/json/http/Cookie.html" title="class in org.apache.sling.commons.json.http"><B>PREV CLASS</B></A> + <A HREF="../../../../../../org/apache/sling/commons/json/http/HTTP.html" title="class in org.apache.sling.commons.json.http"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../../index.html?org/apache/sling/commons/json/http/CookieList.html" target="_top"><B>FRAMES</B></A> + <A HREF="CookieList.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_top"></A> +<!-- ========= END OF TOP NAVBAR ========= --> + +<HR> +<!-- ======== START OF CLASS DATA ======== --> +<H2> +<FONT SIZE="-1"> +org.apache.sling.commons.json.http</FONT> +<BR> +Class CookieList</H2> +<PRE> +java.lang.Object + <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.sling.commons.json.http.CookieList</B> +</PRE> +<HR> +<DL> +<DT><PRE>public class <B>CookieList</B><DT>extends java.lang.Object</DL> +</PRE> + +<P> +Convert a web browser cookie list string to a JSONObject and back. +<P> + +<P> +<DL> +<DT><B>Version:</B></DT> + <DD>2</DD> +<DT><B>Author:</B></DT> + <DD>JSON.org</DD> +</DL> +<HR> + +<P> + +<!-- ======== CONSTRUCTOR SUMMARY ======== --> + +<A NAME="constructor_summary"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +<B>Constructor Summary</B></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/http/CookieList.html#CookieList()">CookieList</A></B>()</CODE> + +<BR> + </TD> +</TR> +</TABLE> + +<!-- ========== METHOD SUMMARY =========== --> + +<A NAME="method_summary"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +<B>Method Summary</B></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/http/CookieList.html#toJSONObject(java.lang.String)">toJSONObject</A></B>(java.lang.String string)</CODE> + +<BR> + Convert a cookie list into a JSONObject.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static java.lang.String</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../../org/apache/sling/commons/json/http/CookieList.html#toString(org.apache.sling.commons.json.JSONObject)">toString</A></B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> o)</CODE> + +<BR> + Convert a JSONObject into a cookie list.</TD> +</TR> +</TABLE> + <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> +<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> +</TR> +</TABLE> + +<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="CookieList()"><!-- --></A><H3> +CookieList</H3> +<PRE> +public <B>CookieList</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="toJSONObject(java.lang.String)"><!-- --></A><H3> +toJSONObject</H3> +<PRE> +public static <A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> <B>toJSONObject</B>(java.lang.String string) + throws <A HREF="../../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> +<DL> +<DD>Convert a cookie list into a JSONObject. A cookie list is a sequence + of name/value pairs. The names are separated from the values by '='. + The pairs are separated by ';'. The names and the values + will be unescaped, possibly converting '+' and '%' sequences. + + To add a cookie to a cooklist, + cookielistJSONObject.put(cookieJSONObject.getString("name"), + cookieJSONObject.getString("value")); +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>string</CODE> - A cookie list string +<DT><B>Returns:</B><DD>A JSONObject +<DT><B>Throws:</B> +<DD><CODE><A HREF="../../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE></DL> +</DD> +</DL> +<HR> + +<A NAME="toString(org.apache.sling.commons.json.JSONObject)"><!-- --></A><H3> +toString</H3> +<PRE> +public static java.lang.String <B>toString</B>(<A HREF="../../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> o) + throws <A HREF="../../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> +<DL> +<DD>Convert a JSONObject into a cookie list. A cookie list is a sequence + of name/value pairs. The names are separated from the values by '='. + The pairs are separated by ';'. The characters '%', '+', '=', and ';' + in the names and values are replaced by "%hh". +<P> +<DD><DL> +<DT><B>Parameters:</B><DD><CODE>o</CODE> - A JSONObject +<DT><B>Returns:</B><DD>A cookie list string +<DT><B>Throws:</B> +<DD><CODE><A HREF="../../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE></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="class-use/CookieList.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../../org/apache/sling/commons/json/http/Cookie.html" title="class in org.apache.sling.commons.json.http"><B>PREV CLASS</B></A> + <A HREF="../../../../../../org/apache/sling/commons/json/http/HTTP.html" title="class in org.apache.sling.commons.json.http"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../../index.html?org/apache/sling/commons/json/http/CookieList.html" target="_top"><B>FRAMES</B></A> + <A HREF="CookieList.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> +Copyright © 2007-2009. All Rights Reserved. +</BODY> +</HTML>