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: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. val chunk: HttpChunkMessage

    Data associated with this chunk

  6. def clone(): AnyRef

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

    Processing configuration

    Processing configuration

    Definition Classes
    HttpChunkEventHttpEvent
  8. val context: ChannelHandlerContext

    Netty channel associated with this request

    Netty channel associated with this request

    Definition Classes
    HttpChunkEventSockoEvent
  9. val createdOn: Date

    Timestamp when this event was fired

    Timestamp when this event was fired

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

    HTTP End point for this request

    HTTP End point for this request

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

    Definition Classes
    AnyRef
  13. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  15. val initialHttpRequest: InitialHttpRequestMessage

    The initial HTTP request associated with this chunk

  16. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  19. val nettyHttpChunk: NettyHttpContent

    Incoming chunk of data for processing

  20. final def notify(): Unit

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

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

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

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

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

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

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