AbstractSockJSRouter

play.sockjs.api.AbstractSockJSRouter
abstract class AbstractSockJSRouter(val components: SockJSRouterComponents) extends BaseSockJSRouter

An abstract implementation of BaseSockJSRouter to make it easier to use

Attributes

Graph
Supertypes
trait Router
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

final def /:(prefix: String): Router

An alternative syntax for withPrefix. For example:

An alternative syntax for withPrefix. For example:

 val router = "/bar" /: barRouter

Attributes

Inherited from:
Router
def asJava: Router

Attributes

Inherited from:
Router
final def documentation: Seq[(String, String, String)]

Documentation for the router.

Documentation for the router.

Attributes

Returns

A list of method, path pattern and controller/method invocations for each route.

Inherited from:
BaseSockJSRouter
final def handlerFor(request: RequestHeader): Option[Handler]

A lifted version of the routes partial function.

A lifted version of the routes partial function.

Attributes

Inherited from:
Router
final def orElse(other: Router): Router

Compose two routers into one. The resulting router will contain both the routes in this as well as router

Compose two routers into one. The resulting router will contain both the routes in this as well as router

Attributes

Inherited from:
Router
final def routes: Routes

The actual routes of the router.

The actual routes of the router.

Attributes

Inherited from:
BaseSockJSRouter
protected def settings: SockJSSettings

Override this method to specify different settings

Override this method to specify different settings

Attributes

Inherited from:
BaseSockJSRouter
def sockjs: SockJS

SockJS handler

SockJS handler

Attributes

Inherited from:
BaseSockJSRouter
final def withPrefix(prefix: String): Router

Get a new router that routes requests to s"$prefix/$path" in the same way this router routes requests to path.

Get a new router that routes requests to s"$prefix/$path" in the same way this router routes requests to path.

Attributes

Returns

the prefixed router

Inherited from:
BaseSockJSRouter

Concrete fields

Provides the components needed by the underlying router and SockJS server

Provides the components needed by the underlying router and SockJS server

Attributes