public class UndertowGateway extends Object
| Constructor and Description |
|---|
UndertowGateway()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getApiKey(io.undertow.server.HttpServerExchange exchange)
Gets the API Key from the exchange.
|
protected String |
getApiKeyFromQuery(io.undertow.server.HttpServerExchange exchange)
Gets the API key from the query string.
|
protected String |
getDestination(io.undertow.server.HttpServerExchange exchange) |
protected String |
getOrganization(io.undertow.server.HttpServerExchange exchange) |
protected String |
getService(io.undertow.server.HttpServerExchange exchange) |
protected String |
getVersion(io.undertow.server.HttpServerExchange exchange) |
static void |
main(String[] args)
Main entry point for the Undertow Gateway.
|
protected void |
readHeaders(io.apiman.gateway.engine.beans.ServiceRequest request,
io.undertow.server.HttpServerExchange exchange)
Reads the inbound request headers from the exchange and sets them on
the
ServiceRequest. |
protected io.apiman.gateway.engine.beans.ServiceRequest |
readRequest(io.undertow.server.HttpServerExchange exchange)
Reads a
ServiceRequest from information found in the inbound
portion of the http exchange. |
void |
start()
Starts the gateway.
|
void |
stop()
Stopes the gateway.
|
protected void |
writeError(io.undertow.server.HttpServerExchange exchange,
Exception e) |
protected void |
writeResponse(io.undertow.server.HttpServerExchange exchange,
io.apiman.gateway.engine.beans.ServiceResponse response) |
public void start()
public void stop()
protected io.apiman.gateway.engine.beans.ServiceRequest readRequest(io.undertow.server.HttpServerExchange exchange)
ServiceRequest from information found in the inbound
portion of the http exchange.exchange - the undertow http server exchangeServiceRequestprotected String getOrganization(io.undertow.server.HttpServerExchange exchange)
exchange - protected String getService(io.undertow.server.HttpServerExchange exchange)
exchange - protected String getVersion(io.undertow.server.HttpServerExchange exchange)
exchange - protected String getApiKey(io.undertow.server.HttpServerExchange exchange)
exchange - protected String getApiKeyFromQuery(io.undertow.server.HttpServerExchange exchange)
exchange - the inbound requestprotected String getDestination(io.undertow.server.HttpServerExchange exchange)
exchange - protected void readHeaders(io.apiman.gateway.engine.beans.ServiceRequest request,
io.undertow.server.HttpServerExchange exchange)
ServiceRequest.request - exchange - protected void writeResponse(io.undertow.server.HttpServerExchange exchange,
io.apiman.gateway.engine.beans.ServiceResponse response)
exchange - response - protected void writeError(io.undertow.server.HttpServerExchange exchange,
Exception e)
exchange - e - public static final void main(String[] args)
args - Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.