Class ValidateCopyHeaders

java.lang.Object
org.chenile.core.interceptors.BaseChenileInterceptor
org.chenile.core.interceptors.ValidateCopyHeaders
All Implemented Interfaces:
Command<ChenileExchange>

public class ValidateCopyHeaders extends BaseChenileInterceptor
As per HTTP convention, all custom headers start with "x-" This interceptor copies all headers that start with "x-" into the context. The context can then be used to read the values by subsequent interceptors and other classes. If headers start with x-p- then they are considered protected. This means that they cannot be passed from the outside by the requester. Attempts to pass them will result in a security exception. This is because we consider such requests as attempts to hack the system. These internal headers will need to be pushed into the system by subsequent interceptors. Please see chenile headers for more details.