Package io.socket.internal

Examples of io.socket.internal.DefaultEventBuilder$EventPayload


      return event;
   }

   public static EventPayload createEventPayloadAsAny(Object value)
   {
      EventPayload payload = new EventPayload();
      payload.setAny(value);
      return payload;
   }
View Full Code Here


      return namedString;
   }

   public static EventPayload createEventPayloadAsNamedString(NamedStringArray payload)
   {
      EventPayload result = new EventPayload();
      result.setNamedStringArray(payload);
      return result;
   }
View Full Code Here

      }
   }

   public static Serializable getPayloadAsSerializable(Event event)
   {
      EventPayload payload = event.getPayload();
      if (payload == null)
      {
         return null;
      }

      ParameterValidation.throwIllegalArgExceptionIfNull(event, "Payload expected type");

      Object any = payload.getAny();
      if (any == null)
      {
         NamedStringArray namedStringArray = payload.getNamedStringArray();
         if (namedStringArray != null)
         {
            return new SerializableNamedStringArray(namedStringArray);
         }
         else
View Full Code Here

      return event;
   }

   public static EventPayload createEventPayloadAsAny(Object value)
   {
      EventPayload payload = new EventPayload();
      payload.setAny(value);
      return payload;
   }
View Full Code Here

      return namedString;
   }

   public static EventPayload createEventPayloadAsNamedString(NamedStringArray payload)
   {
      EventPayload result = new EventPayload();
      result.setNamedStringArray(payload);
      return result;
   }
View Full Code Here

      }
   }

   public static Serializable getPayloadAsSerializable(Event event)
   {
      EventPayload payload = event.getPayload();
      if (payload == null)
      {
         return null;
      }

      ParameterValidation.throwIllegalArgExceptionIfNull(event, "Payload expected type");

      Object any = payload.getAny();
      if (any == null)
      {
         NamedStringArray namedStringArray = payload.getNamedStringArray();
         if (namedStringArray != null)
         {
            return new SerializableNamedStringArray(namedStringArray);
         }
         else
View Full Code Here

      }
   }

   public static Serializable getPayloadAsSerializable(Event event)
   {
      EventPayload payload = event.getPayload();
      if (payload == null)
      {
         return null;
      }

      ParameterValidation.throwIllegalArgExceptionIfNull(event, "Payload expected type");

      Object any = payload.getAny();
      if (any == null)
      {
         NamedStringArray namedStringArray = payload.getNamedStringArray();
         if (namedStringArray != null)
         {
            return new SerializableNamedStringArray(namedStringArray);
         }
         else
View Full Code Here

      return event;
   }

   public static EventPayload createEventPayloadAsAny(Object value)
   {
      EventPayload payload = new EventPayload();
      payload.setAny(value);
      return payload;
   }
View Full Code Here

      return namedString;
   }

   public static EventPayload createEventPayloadAsNamedString(NamedStringArray payload)
   {
      EventPayload result = new EventPayload();
      result.setNamedStringArray(payload);
      return result;
   }
View Full Code Here

TOP

Related Classes of io.socket.internal.DefaultEventBuilder$EventPayload

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.