public interface TunnelRequestInterceptor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TARGET
Service property identifying the interceptor target.
|
| Modifier and Type | Method and Description |
|---|---|
InterceptorResolution |
validateRequest(java.lang.String targetDeviceId,
HttpRequestHeader header)
This method is invoked by the mPRM HTTP Tunnel for every HTTP tunneling request after the target
device is determined but before the request is sent to it.
|
static final java.lang.String TARGET
InterceptorResolution validateRequest(java.lang.String targetDeviceId, HttpRequestHeader header)
targetDeviceId - the device which the HTTP request will be forwarded to.header - HTTP request header dataInterceptorResolution.Resolution.PROCEED (created by method InterceptorResolution.proceed()) -
instructs the HTTP tunnel to proceed with forwarding of this request to the target device.
InterceptorResolution.Resolution.DENY (created by method InterceptorResolution.deny()) -
instructs the HTTP tunnel to NOT forward the request to the target gateway and to return error
403 Forbidden to the caller.
InterceptorResolution.Resolution.RETURN_RESPONSE (created by method
InterceptorResolution.response(int, String, Map)) - instructs the HTTP tunnel to NOT forward the request
to the target gateway and to return the specified HTTP response to the caller.
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.