org.mashupbots.socko.rest

RestRegistration

abstract class RestRegistration extends AnyRef

Binds a org.mashupbots.socko.rest.RestRequest, org.mashupbots.socko.rest.RestResponse and a processor actor to an end point.

This is implemented as an abstract class rather than a trait so that it is easier to override methods and values.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RestRegistration
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RestRegistration()

Abstract Value Members

  1. abstract def method: Method.Value

    HTTP method associated with this operation

  2. abstract def path: String

    Path template of this operation.

    Path template of this operation.

    Path is relative to the root path specified for the REST handler. For example, if the REST handler path is /api and this path is /my_operation, then the full path to this operation is /api/my_operation.

    The path may contain segments that are variable. For example, in /pet/{id}, id is a variable and can be bound to a parameter in the org.mashupbots.socko.rest.RestRequest.

  3. abstract def processorActor(actorSystem: ActorSystem, request: RestRequest): ActorRef

    Locates the actor that will process a request and returns a response.

    Locates the actor that will process a request and returns a response.

    actorSystem

    Actor system in which new actors maybe created

    request

    Rest Request to process

    returns

    ActorRef of actor to which request will be sent for processing

  4. abstract def requestParams: Seq[RequestParam]

    Request parameter bindings.

Concrete 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. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val customDeserialization: Boolean

    Flag to denote if the org.mashupbots.socko.events.SockoEvent is to be made accessible from org.mashupbots.socko.rest.RestRequestEvents so that the REST processing actor can access the raw request data for custom deserialization.

    Flag to denote if the org.mashupbots.socko.events.SockoEvent is to be made accessible from org.mashupbots.socko.rest.RestRequestEvents so that the REST processing actor can access the raw request data for custom deserialization.

    Defaults to false.

  7. val customSerialization: Boolean

    Flag to denote if the org.mashupbots.socko.events.SockoEvent is to be made accessible from org.mashupbots.socko.rest.RestRequestEvents so that the REST processing actor can write data directory to the client.

    Flag to denote if the org.mashupbots.socko.events.SockoEvent is to be made accessible from org.mashupbots.socko.rest.RestRequestEvents so that the REST processing actor can write data directory to the client. Defaults to false.

  8. val deprecated: Boolean

    Flag to denote if this operation is deprecated.

    Flag to denote if this operation is deprecated.

    Programmers are discouraged from using this operation because it is dangerous, or because a better alternative exists. The default is false.

  9. val description: String

    Short description.

    Short description. Less than 60 characters is recommended.

    Default is blank.

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. val errors: Seq[Error]

    Details of possible errors

  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. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. val name: String

    Name of this operation.

    Name of this operation.

    If empty, the default is the name of the declaration class without Declaration. For example, the default name for UpdatePetDeclaration is UpdatePet.

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. val notes: String

    Long description.

    Long description.

    Default is blank.

  20. final def notify(): Unit

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

    Definition Classes
    AnyRef
  22. val request: Option[scala.reflect.api.JavaUniverse.Type]

    The type of the org.mashupbots.socko.rest.RestRequest.

    The type of the org.mashupbots.socko.rest.RestRequest.

    If None, the default is the same name as the declaration class with Declaration replaced with Request. For example, the default for GetPetDeclaration is GetPetRequest.

  23. val response: Option[scala.reflect.api.JavaUniverse.Type]

    The type of the org.mashupbots.socko.rest.RestResponse.

    The type of the org.mashupbots.socko.rest.RestResponse.

    If None, the default is the same name as the declaration class with Declaration replaced with Response. For example, the default for GetPetDeclaration is GetPetResponse.

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

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped