public CxfRsHttpListener(HTTPTransportFactory httpTransportFactory) {
transportFactory = httpTransportFactory;
}
@Override public void onMessage(final HttpRequest httpRequest, final HttpResponse httpResponse) throws Exception {
destination.invoke(null, httpRequest.getServletContext(), new HttpServletRequestWrapper(httpRequest) {
// see org.apache.cxf.jaxrs.utils.HttpUtils.getPathToMatch()
// cxf uses implicitly getRawPath() from the endpoint but not for the request URI
// so without stripping the address until the context the behavior is weird
// this is just a workaround waiting for something better
@Override public String getRequestURI() {