| Package | Description |
|---|---|
| org.jboss.aerogear.controller.router.decorators.cors |
| Modifier and Type | Method and Description |
|---|---|
Cors |
Cors.setAllowCredentials(javax.servlet.http.HttpServletResponse response)
Set the
Cors.ResponseHeader.ALLOW_CREDENTIALS to 'true' if allowCookies was set set to true in the underlying
CorsConfiguration. |
Cors |
Cors.setAllowHeaders(javax.servlet.http.HttpServletResponse response)
Set the
Cors.ResponseHeader.ALLOW_HEADERS to configured values. |
Cors |
Cors.setAllowMethods(javax.servlet.http.HttpServletResponse response)
Set the
Cors.ResponseHeader.ALLOW_METHODS to the the configured comma separated list of http methods. |
Cors |
Cors.setAnyOrigin(javax.servlet.http.HttpServletResponse response)
Set the
Cors.ResponseHeader.ALLOW_ORIGIN to '*'. |
Cors |
Cors.setEchoOrigin(javax.servlet.http.HttpServletResponse response)
Set the
Cors.ResponseHeader.ALLOW_ORIGIN to be the same value that was passed in the 'Origin' request header. |
Cors |
Cors.setExposeHeaders(javax.servlet.http.HttpServletResponse response)
Set the
Cors.ResponseHeader.EXPOSE_HEADERS to the the configured comma separated list of headers. |
Cors |
Cors.setMaxAge(javax.servlet.http.HttpServletResponse response)
Set the
Cors.ResponseHeader.MAX_AGE to the configured max age value. |
Cors |
Cors.setOrigin(javax.servlet.http.HttpServletResponse response)
Set the
Cors.ResponseHeader.ALLOW_ORIGIN to either echo the 'Origin' or to support '*' depending on the underlying
CorsConfiguration setting. |
Cors |
Cors.setOrigin(javax.servlet.http.HttpServletResponse response,
String origin)
Set the
Cors.ResponseHeader.ALLOW_ORIGIN to the passed in value. |
| Modifier and Type | Method and Description |
|---|---|
private void |
CorsHandler.handlePreflight(Cors cors,
javax.servlet.http.HttpServletResponse response) |
private void |
CorsHandler.handleSimpleRequest(Cors cors,
javax.servlet.http.HttpServletResponse response) |
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.