vertx-lang-scala-docs_2.12 3.4.1 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package ext
  Definition Classes
    scala
-  package web
  Definition Classes
    ext
-  package handler
  Definition Classes
    web
-  package sockjs
  Definition Classes
    handler
- AuthHandler
- BasicAuthHandler
- BodyHandler
- CSRFHandler
- CookieHandler
- CorsHandler
- DigestAuthHandler
- ErrorHandler
- FaviconHandler
- FormLoginHandler
- JWTAuthHandler
- LoggerHandler
- OAuth2AuthHandler
- RedirectAuthHandler
- ResponseContentTypeHandler
- ResponseTimeHandler
- SessionHandler
- StaticHandler
- TemplateHandler
- TimeoutHandler
- UserSessionHandler
- VirtualHostHandler

c

io.vertx.scala.ext.web.handler

# CorsHandler 

###
Companion object CorsHandler

#### class CorsHandler extends Handler[RoutingContext]

A handler which implements server side http://www.w3.org/TR/cors/[CORS] support for Vert.x-Web.

Linear Supertypes
Handler[RoutingContext], AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. CorsHandler
2. Handler
3. AnyRef
4. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1.  new CorsHandler(_asJava: AnyRef)

### 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.  def allowCredentials(allow: Boolean): CorsHandler

   Set whether credentials are allowed

   Set whether credentials are allowed

   allow

     true if allowed

   returns

     a reference to this, so the API can be used fluently

5.  def allowedHeader(headerName: String): CorsHandler

   Add an allowed header

   Add an allowed header

   headerName

     the allowed header name

   returns

     a reference to this, so the API can be used fluently

6.  def allowedHeaders(headerNames: Set[String]): CorsHandler

   Add a set of allowed headers

   Add a set of allowed headers

   headerNames

     the allowed header names

   returns

     a reference to this, so the API can be used fluently

7.  def allowedMethod(method: HttpMethod): CorsHandler

   Add an allowed method

   Add an allowed method

   method

     the method to add

   returns

     a reference to this, so the API can be used fluently

8.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
9.  def asJava: AnyRef
10.  def clone(): AnyRef
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
11.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
12.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
13.  def exposedHeader(headerName: String): CorsHandler

    Add an exposed header

    Add an exposed header

    headerName

      the exposed header name

    returns

      a reference to this, so the API can be used fluently

14.  def exposedHeaders(headerNames: Set[String]): CorsHandler

    Add a set of exposed headers

    Add a set of exposed headers

    headerNames

      the exposed header names

    returns

      a reference to this, so the API can be used fluently

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.  def handle(arg0: RoutingContext): Unit
    Definition Classes
      CorsHandler → Handler
18.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
19.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
20.  def maxAgeSeconds(maxAgeSeconds: Int): CorsHandler

    Set how long the browser should cache the information

    Set how long the browser should cache the information

    maxAgeSeconds

      max age in seconds

    returns

      a reference to this, so the API can be used fluently

21.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
22.  final def notify(): Unit
    Definition Classes
      AnyRef
23.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
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 Handler[RoutingContext]

### Inherited from AnyRef

### Inherited from Any

### Ungrouped