public enum HttpServiceConfig extends Enum<HttpServiceConfig>
The http services are internal server services responsible for handling client requests, and they are simple pojos conventionally named Http*Service.
| Enum Constant and Description |
|---|
DEFAULT
Default configuration.
|
EE_NAMESPACE_INTEROPERABLE_MODE
Configuration for running the HTTP remoting layer on EE namespace interoperable mode, where this
Java instance can interoperate with Javax EE clients and servers.
|
| Modifier and Type | Method and Description |
|---|---|
HttpMarshallerFactory |
getHttpMarshallerFactory(io.undertow.server.HttpServerExchange exchange)
Returns the http marshaller factory that must be used for marshalling the service
responses as bytes to be sent as a server response data.
|
HttpMarshallerFactory |
getHttpUnmarshallerFactory(io.undertow.server.HttpServerExchange exchange)
Returns the http marshaller factory that must be used for unmarshalling the objects
from service requests bytes.
|
static HttpServiceConfig |
getInstance()
Returns the right configuration according to the value of
EENamespaceInteroperability.EE_NAMESPACE_INTEROPERABLE_MODE. |
static HttpServiceConfig |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpServiceConfig[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
io.undertow.server.HttpHandler |
wrap(io.undertow.server.HttpHandler handler)
Wraps the http service handler.
|
public static final HttpServiceConfig DEFAULT
public static final HttpServiceConfig EE_NAMESPACE_INTEROPERABLE_MODE
public static HttpServiceConfig[] values()
for (HttpServiceConfig c : HttpServiceConfig.values()) System.out.println(c);
public static HttpServiceConfig valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static HttpServiceConfig getInstance()
EENamespaceInteroperability.EE_NAMESPACE_INTEROPERABLE_MODE.public io.undertow.server.HttpHandler wrap(io.undertow.server.HttpHandler handler)
handler - responsible for handling the HTTP service requests directed to a specific
URIhandler.public HttpMarshallerFactory getHttpUnmarshallerFactory(io.undertow.server.HttpServerExchange exchange)
exchange - the server exchangepublic HttpMarshallerFactory getHttpMarshallerFactory(io.undertow.server.HttpServerExchange exchange)
exchange - the server exchangeCopyright © 2022 JBoss by Red Hat. All rights reserved.