JettyHttpEndpoint

automorph.transport.http.endpoint.JettyHttpEndpoint
See theJettyHttpEndpoint companion object
final case class JettyHttpEndpoint[Effect[_]](effectSystem: EffectSystem[Effect], mapException: Throwable => Int, handler: RequestHandler[Effect, Context]) extends HttpServlet, EndpointTransport[Effect, Context, HttpServlet]

Jetty HTTP endpoint message transport plugin.

Interprets HTTP request body as an RPC request and processes it with the specified RPC handler.

  • The response returned by the RPC handler is used as HTTP response body.

Type parameters

Effect

effect type

Value parameters

effectSystem

effect system plugin

handler

RPC request handler

mapException

maps an exception to a corresponding HTTP status code

Attributes

Constructor

Creates an Jetty HTTP endpoint message transport plugin with specified effect system and request handler.

See also
Companion
object
Graph
Supertypes
trait Product
trait Equals
class HttpServlet
trait Serializable
trait Servlet
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def adapter: HttpServlet

Transport layer adapter.

Transport layer adapter.

Attributes

Definition Classes
override def service(request: HttpServletRequest, response: HttpServletResponse): Unit

Attributes

Definition Classes
override def withHandler(handler: RequestHandler[Effect, Context]): JettyHttpEndpoint[Effect]

Create a copy of this endpoint transport with specified RPC request handler.

Create a copy of this endpoint transport with specified RPC request handler.

Value parameters

handler

RPC request handler

Attributes

Returns

server transport

Definition Classes

Inherited methods

def destroy(): Unit

Attributes

Inherited from:
GenericServlet
def getInitParameter(x$0: String): String

Attributes

Inherited from:
GenericServlet
def getInitParameterNames(): Enumeration[String]

Attributes

Inherited from:
GenericServlet

Attributes

Inherited from:
GenericServlet

Attributes

Inherited from:
GenericServlet
def getServletInfo(): String

Attributes

Inherited from:
GenericServlet
def getServletName(): String

Attributes

Inherited from:
GenericServlet
def init(): Unit

Attributes

Inherited from:
GenericServlet

Attributes

Inherited from:
GenericServlet
def log(x$0: String, x$1: Throwable): Unit

Attributes

Inherited from:
GenericServlet
def log(x$0: String): Unit

Attributes

Inherited from:
GenericServlet

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
HttpServlet

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
Logging (hidden)