org.mashupbots.socko.events

HttpChunkEvent

case class HttpChunkEvent (channel: Channel, initialHttpRequest: InitialHttpRequestMessage, nettyHttpChunk: HttpChunk, config: HttpEventConfig) extends HttpEvent with Product with Serializable

Event fired when a HTTP chunks is received

The HttpChunkEvent will only be fired if:

channel

Channel by which the request entered and response will be written

initialHttpRequest

The initial HTTP request associated with this chunk

nettyHttpChunk

Incoming chunk of data for processing

config

Processing configuration

Linear Supertypes
Serializable, Serializable, Product, Equals, HttpEvent, SockoEvent, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. HttpChunkEvent
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HttpEvent
  7. SockoEvent
  8. AnyRef
  9. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpChunkEvent (channel: Channel, initialHttpRequest: InitialHttpRequestMessage, nettyHttpChunk: HttpChunk, config: HttpEventConfig)

    channel

    Channel by which the request entered and response will be written

    initialHttpRequest

    The initial HTTP request associated with this chunk

    nettyHttpChunk

    Incoming chunk of data for processing

    config

    Processing configuration

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def canEqual (arg0: Any): Boolean

    Definition Classes
    HttpChunkEvent → Equals
  8. val channel : Channel

    Channel by which the request entered and response will be written

    Channel by which the request entered and response will be written

    Definition Classes
    HttpChunkEventSockoEvent
  9. val chunk : HttpChunkMessage

    Data associated with this chunk

  10. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. val config : HttpEventConfig

    Processing configuration

    Processing configuration

    Definition Classes
    HttpChunkEventHttpEvent
  12. val createdOn : Date

    Timestamp when this event was fired

    Timestamp when this event was fired

    Definition Classes
    SockoEvent
  13. def duration (): Long

    Number of milliseconds from the time when this context was created

    Number of milliseconds from the time when this context was created

    Definition Classes
    SockoEvent
  14. val endPoint : EndPoint

    HTTP End point for this request

    HTTP End point for this request

    Definition Classes
    HttpChunkEventSockoEvent
  15. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  16. def equals (arg0: Any): Boolean

    Definition Classes
    HttpChunkEvent → Equals → AnyRef → Any
  17. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  19. def hashCode (): Int

    Definition Classes
    HttpChunkEvent → AnyRef → Any
  20. val initialHttpRequest : InitialHttpRequestMessage

    The initial HTTP request associated with this chunk

  21. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  22. lazy val items : Map[String, Any]

    Store of items that can be used to pass data from route to processor and between processors.

    Store of items that can be used to pass data from route to processor and between processors.

    This map is not synchronized and not thread-safe. In most cases, we expect this cache to be used by a single thread - hence a standard map is faster.

    If you do need to use a thread safe map, from your route, instance and store a ConcurrentHashMap as an item in this cache.

    Definition Classes
    SockoEvent
  23. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  24. val nettyHttpChunk : HttpChunk

    Incoming chunk of data for processing

  25. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  26. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  27. def productArity : Int

    Definition Classes
    HttpChunkEvent → Product
  28. def productElement (arg0: Int): Any

    Definition Classes
    HttpChunkEvent → Product
  29. def productIterator : Iterator[Any]

    Definition Classes
    Product
  30. def productPrefix : String

    Definition Classes
    HttpChunkEvent → Product
  31. val response : HttpResponseMessage

    Outgoing HTTP Response

    Outgoing HTTP Response

    Typically, the response should only be written if this is the last chunk. However, in the event of an error, you may wish to try to send a response back to the client.

  32. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  33. def toString (): String

    Definition Classes
    HttpChunkEvent → AnyRef → Any
  34. var username : Option[String]

    Username of the authenticated user.

    Username of the authenticated user. You need to set this for it to appear in the web logs.

    Socko does not make assumptions on your authentication method. You do it and set this username to let us know.

    Definition Classes
    SockoEvent
  35. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. def writeWebLog (responseStatusCode: Int, responseSize: Long): Unit

    Adds an entry to the web log

    Adds an entry to the web log

    If you have an authenticated user, be sure to set this.username before writing a web log.

    responseStatusCode

    HTTP status code

    responseSize

    length of response content in bytes

    Definition Classes
    HttpChunkEventHttpEvent

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HttpEvent

Inherited from SockoEvent

Inherited from AnyRef

Inherited from Any