This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[3/12/17 12:29:03:339 BRT] 0000008e UpdateSchedul I ADMA5078I: Update of HelloWorldEAR has started. | |
[3/12/17 12:29:03:386 BRT] 0000008e wtp I org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Ear50NoDDImportStrategyImpl loadDeploymentDescriptor EAR [ X:\mobiDeasNovo\UpWork\PubNub\java\Projects Samples\WebSphere\HelloWorldEAR ] Module [ HelloWorld.war ] [ | |
Web Module [ org.eclipse.jst.j2ee.application.internal.impl.WebModuleImpl@d9fee028 ] | |
URI [ HelloWorld.war ] | |
Alt DD [ null ] | |
Context Root [ null ] | |
] handled as loose archive [ com.ibm.etools.commonarchive.impl.WARFileImpl@a9f66eb1 (URI: HelloWorld.war, lastModified: 0, size: 0, directoryEntry: <unset>, originalURI: HelloWorld.war) (types: null) ] | |
[3/12/17 12:29:03:662 BRT] 0000008e visitor W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@2074588302 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@17247136 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pubnub.api; | |
import com.pubnub.api.enums.PNHeartbeatNotificationOptions; | |
import com.pubnub.api.enums.PNLogVerbosity; | |
import com.pubnub.api.enums.PNReconnectionPolicy; | |
import lombok.AccessLevel; | |
import lombok.Getter; | |
import lombok.Setter; | |
import lombok.experimental.Accessors; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void simpleRequest() throws IOException { | |
LOG.debug("Simple request without trustmanager/sslfactory config."); | |
String[] cipher = new String[] { "TLS_EMPTY_RENEGOTIATION_INFO_SCSV", "SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", "SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA256", "SSL_RSA_WITH_AES_128_CBC_SHA256", "SSL_ECDH_ECDSA_WITH_AES_128_CBC_SHA256", "SSL_ECDH_RSA_WITH_AES_128_CBC_SHA256", "SSL_DHE_RSA_WITH_AES_128_CBC_SHA256", "SSL_DHE_DSS_WITH_AES_128_CBC_SHA256", "SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", "SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA", "SSL_RSA_WITH_AES_128_CBC_SHA", "SSL_ECDH_ECDSA_WITH_AES_128_CBC_SHA", "SSL_ECDH_RSA_WITH_AES_128_CBC_SHA", "SSL_DHE_RSA_WITH_AES_128_CBC_SHA", "SSL_DHE_DSS_WITH_AES_128_CBC_SHA", "SSL_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "SSL_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "SSL_RSA_WITH_AES_128_GCM_SHA256", "SSL_ECDH_ECDSA_WITH_AES_128_GCM_SHA256", "SSL_ECDH_RSA_WITH_AES_128_GCM_SHA256", "SSL_DHE_RSA_WITH_AES_128_GCM_SHA256", "SSL_DHE_DSS_WITH_AES_128_GCM_SHA256", "SSL_ECDHE_E |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pubnub.api; | |
import com.pubnub.api.callbacks.SubscribeCallback; | |
import com.pubnub.api.enums.PNOperationType; | |
import com.pubnub.api.enums.PNStatusCategory; | |
import com.pubnub.api.models.consumer.PNStatus; | |
import com.pubnub.api.models.consumer.pubsub.PNMessageResult; | |
import com.pubnub.api.models.consumer.pubsub.PNPresenceEventResult; | |
import java.util.Arrays; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSONArray position = new JSONArray(); | |
position.put(32L); | |
System.out.println("before pub: " + position); | |
pubnub.publish() | |
.message(toList(position)) | |
.channel("my_channel") | |
.async(new PNCallback<PNPublishResult>() { | |
@Override | |
public void onResponse(PNPublishResult result, PNStatus status) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSONArray position = new JSONArray(); | |
position.put(32L); | |
System.out.println("before pub: " + position); | |
pubnub.publish() | |
.message(position.toList()) | |
.channel("my_channel") | |
.async(new PNCallback<PNPublishResult>() { | |
@Override | |
public void onResponse(PNPublishResult result, PNStatus status) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
android { | |
signingConfigs { | |
config { | |
keyAlias 'PubNub' | |
keyPassword '123456' | |
storeFile file('C:/temp/pubnubKeyStore.jks') | |
storePassword '123456' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.gson.JsonObject; | |
import com.pubnub.api.PNConfiguration; | |
import com.pubnub.api.PubNub; | |
import com.pubnub.api.callbacks.SubscribeCallback; | |
import com.pubnub.api.enums.PNLogVerbosity; | |
import com.pubnub.api.enums.PNReconnectionPolicy; | |
import com.pubnub.api.models.consumer.PNStatus; | |
import com.pubnub.api.models.consumer.pubsub.PNMessageResult; | |
import com.pubnub.api.models.consumer.pubsub.PNPresenceEventResult; | |
import org.slf4j.Logger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pubNub.addListener(new SubscribeCallback() { | |
@Override | |
public void status(PubNub pubnub, PNStatus status) { | |
if (status.getOperation() != null) { | |
switch (status.getOperation()) { | |
// let's combine unsubscribe and subscribe handling for ease of use | |
case PNSubscribeOperation: | |
case PNUnsubscribeOperation: | |
// note: subscribe statuses never have traditional | |
// errors, they just have categories to represent the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.we.pubnubtest.utils; | |
import com.pubnub.api.models.consumer.history.PNFetchMessagesResult; | |
/** | |
* Created by tukunare on 2/8/2017. | |
*/ | |
public abstract class CallbackSkeleton { | |
public CallbackSkeleton() { |
NewerOlder