| Package | Description |
|---|---|
| org.spincast.core.controllers | |
| org.spincast.core.exchange | |
| org.spincast.core.routing | |
| org.spincast.core.server | |
| org.spincast.core.utils |
| Modifier and Type | Method and Description |
|---|---|
protected ContentTypeDefaults |
SpincastFrontController.getResponseContentTypeToUse(Object exchange) |
| Modifier and Type | Method and Description |
|---|---|
ContentTypeDefaults |
RequestRequestContextAddon.getContentTypeBestMatch()
Finds the best
Content-Type to use for a response
using the "Accept" header of the request. |
| Modifier and Type | Method and Description |
|---|---|
RouteBuilder<R> |
RouteBuilder.accept(ContentTypeDefaults... acceptedContentTypes)
Sets the accepted
Content-Types. |
| Modifier and Type | Method and Description |
|---|---|
RouteBuilder<R> |
RouteBuilder.accept(Set<ContentTypeDefaults> acceptedContentTypes)
Sets the accepted
Content-Types. |
| Modifier and Type | Method and Description |
|---|---|
ContentTypeDefaults |
Server.getContentTypeBestMatch(Object exchange)
Gets the best
Content-Type to use for the current request. |
| Modifier and Type | Method and Description |
|---|---|
static ContentTypeDefaults |
ContentTypeDefaults.fromString(String contentTypeString) |
static ContentTypeDefaults |
ContentTypeDefaults.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentTypeDefaults[] |
ContentTypeDefaults.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2017. All rights reserved.