Skip to content

Commit fc4fd54

Browse files
author
Devendra
committed
adding token requester utility
1 parent 7337d8a commit fc4fd54

30 files changed

Lines changed: 304 additions & 42 deletions
3.42 KB
Binary file not shown.

java/build.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<antcall target="unsetDebugTrue" />
8383
</target>
8484

85-
<target depends="create-jar, create-test-jar, create-examples-jar, create-demo-console-jar, create-presence-test-jar, clean_bin, doc" name="build-jar"/>
85+
<target depends="create-jar, create-test-jar, create-token-request-jar, create-examples-jar, create-demo-console-jar, create-presence-test-jar, clean_bin, doc" name="build-jar"/>
8686
<target depends="build-project" name="create-jar">
8787
<jar destfile="${jar_name}"
8888
basedir="bin"
@@ -191,6 +191,9 @@
191191
<delete_temp_dirs />
192192
</sequential>
193193
</macrodef>
194+
<target name="create-token-request-jar">
195+
<create-jar jar.type="examples" jar.classname="com.pubnub.examples.PubnubTokenRequest" jar.filename="PubnubTokenRequest.jar" />
196+
</target>
194197
<target name="create-examples-jar">
195198
<create-jar jar.type="examples" jar.classname="com.pubnub.examples.PubnubExample" jar.filename="PubnubExample.jar" />
196199
</target>

java/doc/allclasses-frame.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_37) on Sat May 24 02:51:04 IST 2014 -->
5+
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jun 09 17:57:32 IST 2014 -->
66
<TITLE>
77
All Classes
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2014-05-24">
10+
<META NAME="date" CONTENT="2014-06-09">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
1313

java/doc/allclasses-noframe.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_37) on Sat May 24 02:51:04 IST 2014 -->
5+
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jun 09 17:57:32 IST 2014 -->
66
<TITLE>
77
All Classes
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2014-05-24">
10+
<META NAME="date" CONTENT="2014-06-09">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
1313

java/doc/com/pubnub/api/Callback.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_37) on Sat May 24 02:51:02 IST 2014 -->
5+
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jun 09 17:57:31 IST 2014 -->
66
<TITLE>
77
Callback
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2014-05-24">
10+
<META NAME="date" CONTENT="2014-06-09">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
1313

java/doc/com/pubnub/api/HttpUtil.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_37) on Sat May 24 02:51:02 IST 2014 -->
5+
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jun 09 17:57:31 IST 2014 -->
66
<TITLE>
77
HttpUtil
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2014-05-24">
10+
<META NAME="date" CONTENT="2014-06-09">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
1313

java/doc/com/pubnub/api/Pubnub.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_37) on Sat May 24 02:51:02 IST 2014 -->
5+
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jun 09 17:57:31 IST 2014 -->
66
<TITLE>
77
Pubnub
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2014-05-24">
10+
<META NAME="date" CONTENT="2014-06-09">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
1313

@@ -628,6 +628,15 @@ <H2>
628628
<TR BGCOLOR="white" CLASS="TableRowColor">
629629
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
630630
<CODE>&nbsp;void</CODE></FONT></TD>
631+
<TD><CODE><B><A HREF="../../../com/pubnub/api/Pubnub.html#presence(java.lang.String[], com.pubnub.api.Callback)">presence</A></B>(java.lang.String[]&nbsp;channels,
632+
<A HREF="../../../com/pubnub/api/Callback.html" title="class in com.pubnub.api">Callback</A>&nbsp;callback)</CODE>
633+
634+
<BR>
635+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Listen for presence of subscribers on a channel</TD>
636+
</TR>
637+
<TR BGCOLOR="white" CLASS="TableRowColor">
638+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
639+
<CODE>&nbsp;void</CODE></FONT></TD>
631640
<TD><CODE><B><A HREF="../../../com/pubnub/api/Pubnub.html#presence(java.lang.String, com.pubnub.api.Callback)">presence</A></B>(java.lang.String&nbsp;channel,
632641
<A HREF="../../../com/pubnub/api/Callback.html" title="class in com.pubnub.api">Callback</A>&nbsp;callback)</CODE>
633642

@@ -1890,6 +1899,24 @@ <H2>
18901899
</DL>
18911900
<HR>
18921901

1902+
<A NAME="presence(java.lang.String[], com.pubnub.api.Callback)"><!-- --></A><H3>
1903+
presence</H3>
1904+
<PRE>
1905+
public void <B>presence</B>(java.lang.String[]&nbsp;channels,
1906+
<A HREF="../../../com/pubnub/api/Callback.html" title="class in com.pubnub.api">Callback</A>&nbsp;callback)
1907+
throws <A HREF="../../../com/pubnub/api/PubnubException.html" title="class in com.pubnub.api">PubnubException</A></PRE>
1908+
<DL>
1909+
<DD>Listen for presence of subscribers on a channel
1910+
<P>
1911+
<DD><DL>
1912+
<DT><B>Parameters:</B><DD><CODE>channels</CODE> - Array of channel names on which to listen for join/leave i.e.
1913+
presence events<DD><CODE>callback</CODE> - object of sub class of Callback class
1914+
<DT><B>Throws:</B>
1915+
<DD><CODE><A HREF="../../../com/pubnub/api/PubnubException.html" title="class in com.pubnub.api">PubnubException</A></CODE> - Throws PubnubException if Callback is null</DL>
1916+
</DD>
1917+
</DL>
1918+
<HR>
1919+
18931920
<A NAME="whereNow(java.lang.String, com.pubnub.api.Callback)"><!-- --></A><H3>
18941921
whereNow</H3>
18951922
<PRE>

java/doc/com/pubnub/api/PubnubCrypto.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_37) on Sat May 24 02:51:03 IST 2014 -->
5+
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jun 09 17:57:31 IST 2014 -->
66
<TITLE>
77
PubnubCrypto
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2014-05-24">
10+
<META NAME="date" CONTENT="2014-06-09">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
1313

java/doc/com/pubnub/api/PubnubError.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_37) on Sat May 24 02:51:03 IST 2014 -->
5+
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jun 09 17:57:31 IST 2014 -->
66
<TITLE>
77
PubnubError
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2014-05-24">
10+
<META NAME="date" CONTENT="2014-06-09">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
1313

java/doc/com/pubnub/api/PubnubException.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_37) on Sat May 24 02:51:03 IST 2014 -->
5+
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jun 09 17:57:32 IST 2014 -->
66
<TITLE>
77
PubnubException
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2014-05-24">
10+
<META NAME="date" CONTENT="2014-06-09">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
1313

0 commit comments

Comments
 (0)