Package

org.scalatra

atmosphere

Permalink

package atmosphere

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. atmosphere
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type AtmoReceive = PartialFunction[InboundMessage, Unit]

    Permalink
  2. implicit final class AtmoResourceWithClient extends AnyVal

    Permalink
  3. trait AtmosphereClient extends AtmosphereClientFilters

    Permalink

    Provides a handle for a single Atmosphere connection.

    Provides a handle for a single Atmosphere connection.

    Each browser or other device which connects to an atmosphere route is assigned its own AtmosphereClient, with a uuid. This is a good bet for subclassing if you need to implement your own message distribution logic. Subclasses may define their own ClientFilter logic in addition to the stock ClientFilters already defined, in order to segment message delivery.

  4. trait AtmosphereClientFilters extends Serializable

    Permalink

    Useful filters to limit who receives broadcasts.

  5. trait AtmosphereSupport extends Initializable with Handler with CometProcessor with HttpEventServlet with CometProcessor with ScalatraAsyncSupport

    Permalink
  6. case class BinaryMessage(content: Array[Byte]) extends ProtocolMessage[Array[Byte]] with Product with Serializable

    Permalink

    A message representing an array of bytes sent to/received from a remote party.

    A message representing an array of bytes sent to/received from a remote party.

    content

    An Array of Bytes representing the content of the message

  7. abstract class ClientFilter extends Function[AtmosphereResource, Boolean]

    Permalink
  8. final class DefaultScalatraBroadcaster extends DefaultBroadcaster with ScalatraBroadcaster

    Permalink
  9. case class Disconnected(who: Disconnector, cause: Option[Throwable]) extends InboundMessage with Product with Serializable

    Permalink

    A callback event signaling that the connection has ended, if the cause was an exception thrown then the cause object will be filled in.

    A callback event signaling that the connection has ended, if the cause was an exception thrown then the cause object will be filled in.

    cause

    A scala.Option of java.lang.Throwable

  10. sealed trait Disconnector extends AnyRef

    Permalink
  11. case class Error(cause: Option[Throwable]) extends InboundMessage with Product with Serializable

    Permalink

    A callback event signaling that an error has occurred.

    A callback event signaling that an error has occurred. if the error was an exception thrown then the cause object will be filled in.

    cause

    A scala.Option of java.lang.Throwable

  12. class Everyone extends ClientFilter

    Permalink
  13. sealed trait InboundMessage extends AnyRef

    Permalink

    A marker trait for inbound messages

  14. class JacksonSimpleWireformat extends SimpleJsonWireFormat with JsonMethods

    Permalink
  15. case class JsonMessage(content: JValue) extends ProtocolMessage[JValue] with Product with Serializable

    Permalink

    A message representing a json object sent to/received from a remote party.

    A message representing a json object sent to/received from a remote party.

    content

    A org.json4s.JValue object

  16. class Message extends AnyRef

    Permalink
  17. class NativeSimpleWireFormat extends SimpleJsonWireFormat with JsonMethods

    Permalink
  18. class OnlySelf extends ClientFilter

    Permalink
  19. sealed trait OutboundMessage extends AnyRef

    Permalink

    A marker trait for outbound messages

  20. trait ProtocolMessage[T] extends InboundMessage with OutboundMessage

    Permalink

    A base trait for creating messages of different content types

    A base trait for creating messages of different content types

    T

    The type of content this protocol message represents

  21. final class RedisScalatraBroadcaster extends RedisBroadcaster with ScalatraBroadcaster

    Permalink
  22. class ScalatraAtmosphereException extends ScalatraException

    Permalink
  23. class ScalatraAtmosphereFramework extends AtmosphereFramework

    Permalink
  24. class ScalatraAtmosphereHandler extends AbstractReflectorAtmosphereHandler

    Permalink
  25. trait ScalatraBroadcaster extends Broadcaster

    Permalink
  26. abstract class SimpleJsonWireFormat extends WireFormat

    Permalink

    A protocol format that is just plain and simple json.

    A protocol format that is just plain and simple json. This protocol doesn't support acking. It looks at the first character in the message and if it thinks it's JSON it will try to parse it as JSON otherwise it creates a text message

  27. class SkipSelf extends ClientFilter

    Permalink
  28. case class TextMessage(content: String) extends ProtocolMessage[String] with Product with Serializable

    Permalink

    A message representing a text object sent to/received from a remote party.

    A message representing a text object sent to/received from a remote party.

    content

    A scala.Predef.String representing the content of the message

  29. trait WireFormat extends AnyRef

    Permalink

    The interface trait for a wire format.

    The interface trait for a wire format. Creating a new wire format means implementing these 3 methods.

Value Members

  1. val ActorSystemKey: String

    Permalink
  2. object AtmosphereClient extends Serializable

    Permalink
  3. val AtmosphereClientKey: String

    Permalink
  4. val AtmosphereRouteKey: String

    Permalink
  5. object ClientDisconnected extends Disconnector with Product with Serializable

    Permalink
  6. object Connected extends InboundMessage with Product with Serializable

    Permalink

    A callback event signaling that the connection has been fully established.

    A callback event signaling that the connection has been fully established. This means that any handshakes have been completed successfully too.

    When you receive this callback message you can be sure there is someone on the other end.

  7. object Heartbeat extends InboundMessage with Product with Serializable

    Permalink

    A callback event signaling a heartbeat

    A callback event signaling a heartbeat

    When you receive this heartbeat message you can be sure there is someone on the other end.

  8. object ScalatraAtmosphereHandler

    Permalink
  9. object ServerDisconnected extends Disconnector with Product with Serializable

    Permalink
  10. val TrackMessageSize: String

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped