Tabnine Logo
UnregisterResponse
Code IndexAdd Tabnine to your IDE (free)

How to use
UnregisterResponse
in
org.jboss.aerogear.simplepush.protocol

Best Java code snippets using org.jboss.aerogear.simplepush.protocol.UnregisterResponse (Showing top 4 results out of 315)

origin: org.jboss.aerogear/aerogear-simplepush-protocol

  @Override
  public void serialize(final UnregisterResponse unregisterResponse, final JsonGenerator jgen,
      final SerializerProvider provider) throws IOException {
    jgen.writeStartObject();
    jgen.writeFieldName(RegisterResponse.MESSSAGE_TYPE_FIELD);
    jgen.writeString(unregisterResponse.getMessageType().toString().toLowerCase());
    jgen.writeFieldName(RegisterResponse.CHANNEL_ID_FIELD);
    jgen.writeString(unregisterResponse.getChannelId());
    jgen.writeFieldName(RegisterResponse.STATUS_FIELD);
    jgen.writeNumber(unregisterResponse.getStatus().getCode());
    jgen.writeEndObject();
  }
}
origin: org.jboss.aerogear/aerogear-simplepush-server-netty

final UnregisterResponse response = simplePushServer.handleUnregister(unregister, uaid);
session.send(toJson(response));
logger.info("UserAgent [" + uaid + "] Unregistered[" + response.getChannelId() + "]");
origin: aerogear/aerogear-simplepush-server

final UnregisterResponse response = simplePushServer.handleUnregister(unregister, uaid);
session.send(toJson(response));
logger.info("UserAgent [" + uaid + "] Unregistered[" + response.getChannelId() + "]");
origin: aerogear/aerogear-simplepush-server

  @Override
  public void serialize(final UnregisterResponse unregisterResponse, final JsonGenerator jgen,
      final SerializerProvider provider) throws IOException {
    jgen.writeStartObject();
    jgen.writeFieldName(RegisterResponse.MESSSAGE_TYPE_FIELD);
    jgen.writeString(unregisterResponse.getMessageType().toString().toLowerCase());
    jgen.writeFieldName(RegisterResponse.CHANNEL_ID_FIELD);
    jgen.writeString(unregisterResponse.getChannelId());
    jgen.writeFieldName(RegisterResponse.STATUS_FIELD);
    jgen.writeNumber(unregisterResponse.getStatus().getCode());
    jgen.writeEndObject();
  }
}
org.jboss.aerogear.simplepush.protocolUnregisterResponse

Javadoc

Represents the Unregister response message, 'unregister' message type, in the SimplePush specification protocol

This message is sent from the PushServer to the UserAgent with the result of a unregistration request.

Most used methods

  • getChannelId
  • getMessageType
  • getStatus
    Returns the result of the Register call

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now