Skip to content

Commit

Permalink
adding dev console sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
Devendra committed Jul 4, 2013
1 parent 02d43ba commit 37cb771
Show file tree
Hide file tree
Showing 600 changed files with 30,446 additions and 0 deletions.
Binary file not shown.
Binary file added codenameone/examples/PubnubDevConsole/JavaSE.jar
Binary file not shown.
425 changes: 425 additions & 0 deletions codenameone/examples/PubnubDevConsole/build.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
#Wed Jul 18 15:45:51 IDT 2012
codename1.vendor=CodenameOne
codename1.displayName=PubnubDevConsoleWithCn1lib
codename1.icon=icon.png
codename1.ios.debug.certificatePassword=
codename1.secondaryTitle=PubnubDevConsoleWithCn1lib
codename1.version=1.0
package=generated
codename1.mainName=PubnubDevConsole
codename1.ios.certificatePassword=
codename1.ios.release.provision=
codename1.rim.signtoolDb=
codename1.ios.release.certificatePassword=
codename1.ios.certificate=
userClass=src/userclasses/StateMachine.java
codename1.android.keystorePassword=
codename1.ios.appid=Q5GHSKAL2F.com.pubnub.examples
codename1.ios.release.certificate=
codename1.j2me.nativeTheme=nbproject/nativej2me.res
codename1.rim.signtoolCsk=
codename1.ios.debug.certificate=
mainForm=Main
codename1.android.keystore=
baseClass=src/generated/StateMachineBase.java
guiResource=theme.res
codename1.android.keystoreAlias=
codename1.rim.certificatePassword=
codename1.ios.provision=
codename1.ios.debug.provision=
codename1.packageName=com.pubnub.examples
codename1.languageLevel=5
codename1.arg.vserv.transition=3000
Binary file added codenameone/examples/PubnubDevConsole/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Support classes useful for encoding and supporting the various RSA PKCS documents.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Classes for support of the SEC standard for Elliptic Curve.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
An ASN.1 dump utility.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Support classes useful for encoding and processing X.509 certificates.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Support classes useful for encoding and processing messages based around RFC3739
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Support classes useful for encoding and supporting X9.62 elliptic curve.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Basic key agreement classes.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Message digest classes.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Block encodings for asymmetric ciphers.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Basic cipher classes.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Generators for keys, key pairs and password based encryption algorithms.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Classes for doing "enhanced" I/O with Digests and MACs.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Classes for creating MACs and HMACs.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Modes for symmetric ciphers.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Base classes for the lightweight API.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Paddings for symmetric ciphers.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Classes for parameter objects for ciphers and generators.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Lightweight psuedo-random number generators.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Basic signers.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
A lightweight TLS API.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Some general utility/conversion classes.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Math support for Elliptic Curve.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Objects and OID for the support of ISO OIW.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<body bgcolor="#ffffff">
Classes for producing and reading Base64 and Hex strings.
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.codename1.io;


public class PubnubCn1Connection {

public PubnubCn1Connection() {
}

public PubnubCn1Response fetch(String url, int timeout, java.util.Hashtable _headers) {
}

public void disconnect() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.codename1.io;


public class PubnubCn1Response {

public PubnubCn1Response(int responseStatusCode, String response) {
}

public String getResponse() {
}

public int getResponseStatusCode() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
package com.pubnub.api;


/**
* Abstract class to be subclassed by objects being passed as callbacks to
* Pubnub APIs Default implementation for all methods is blank
*
* @author Pubnub
*/
public abstract class Callback {

public Callback() {
}

/**
* This callback will be invoked when a message is received on the channel
*
* @param channel
* Channel Name
* @param message
* Message
*/
public abstract void successCallback(String channel, Object message) {
}

/**
* This callback will be invoked when an error occurs
*
* @param channel
* Channel Name
* @param error
* error
*/
public void errorCallback(String channel, PubnubError error) {
}

/**
* This callback will be invoked when an error occurs
*
* @param channel
* Channel Name
* @param message
* Message
* @deprecated as of version 3.5.2 and will be removed with 3.6.0 .
* Replaced by {@link #errorCallback(String channel, PubnubError error)}
*/
public void errorCallback(String channel, Object message) {
}

/**
* This callback will be invoked on getting connected to a channel
*
* @param channel
* Channel Name
*/
public void connectCallback(String channel, Object message) {
}

/**
* This callback is invoked on getting reconnected to a channel after
* getting disconnected
*
* @param channel
* Channel Name
*/
public void reconnectCallback(String channel, Object message) {
}

/**
* This callback is invoked on getting disconnected from a channel
*
* @param channel
* Channel Name
*/
public void disconnectCallback(String channel, Object message) {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package com.pubnub.api;


public class HttpUtil {

public static final int HTTP_MOVED_PERM = 301;

public static final int HTTP_MOVED_TEMP = 302;

public static final int HTTP_SEE_OTHER = 303;

public static final int HTTP_OK = 200;

public static final int HTTP_FORBIDDEN = 403;

public static final int HTTP_UNAUTHORIZED = 401;

public static final int HTTP_BAD_REQUEST = 400;

public static final int HTTP_BAD_GATEWAY = 502;

public static final int HTTP_CLIENT_TIMEOUT = 408;

public static final int HTTP_GATEWAY_TIMEOUT = 504;

public static final int HTTP_INTERNAL_ERROR = 500;

public HttpUtil() {
}

public static boolean isRedirect(int rc) {
}

public static boolean isOk(int rc) {
}

public static boolean checkResponse(int rc) {
}

public static boolean checkResponseSuccess(int rc) {
}
}
Loading

0 comments on commit 37cb771

Please sign in to comment.