org.mashupbots.socko.events

HttpChunkEvent

case class HttpChunkEvent(context: ChannelHandlerContext, initialHttpRequest: InitialHttpRequestMessage, nettyHttpChunk: NettyHttpContent, config: HttpEventConfig) extends SockoEvent with HttpEvent with Product with Serializable

Event fired when a HTTP chunk is received

The org.mashupbots.socko.events.HttpChunkEvent will only be fired if:

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. HttpChunkEvent
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HttpEvent
  7. SockoEvent
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpChunkEvent(context: ChannelHandlerContext, initialHttpRequest: InitialHttpRequestMessage, nettyHttpChunk: NettyHttpContent, config: HttpEventConfig)

    initialHttpRequest

    The initial HTTP request associated with this chunk

    nettyHttpChunk

    Incoming chunk of data for processing

    config

    Processing configuration

Value Members

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

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

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

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

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

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

    Definition Classes
    Any
  7. val chunk: HttpChunkMessage

    Data associated with this chunk

  8. def clone(): AnyRef

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

    Processing configuration

    Processing configuration

    Definition Classes
    HttpChunkEventHttpEvent
  10. val context: ChannelHandlerContext

    Netty channel associated with this request

    Netty channel associated with this request

    Definition Classes
    HttpChunkEventSockoEvent
  11. val createdOn: Date

    Timestamp when this event was fired

    Timestamp when this event was fired

    Definition Classes
    SockoEvent
  12. 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
  13. val endPoint: EndPoint

    HTTP End point for this request

    HTTP End point for this request

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

    Definition Classes
    AnyRef
  15. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  17. val initialHttpRequest: InitialHttpRequestMessage

    The initial HTTP request associated with this chunk

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. 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
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. val nettyHttpChunk: NettyHttpContent

    Incoming chunk of data for processing

  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. 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.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. 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
  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. 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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HttpEvent

Inherited from SockoEvent

Inherited from AnyRef

Inherited from Any

Ungrouped