public ResteasyRequestWrapper(final HttpServletRequest request, final String httpMethod, final String prefix) throws ServletException, IOException { this.httpServletRequest = request; ResteasyHttpHeaders headers = ServletUtil.extractHttpHeaders(request); ResteasyUriInfo uriInfo = ServletUtil.extractUriInfo(request, prefix); // TODO: how are we supposed to get the response to create the // wrapper!!!!? The null response will only make it so that the // Asynchronous invocations won't work // HttpServletResponseWrapper theResponse = new // HttpServletResponseWrapper(httpServletResponse, dispatcher // TODO: the two nulls are the response and the dispatcher. Those // are not needed here... They are only needed for asynchronous // invocations. Suggest Core RESTEasy refactoring to change the // async invocation httpRequest = new HttpServletInputMessage(request, null, null, null, headers, uriInfo, httpMethod .toUpperCase(), null); }
public RequestImpl(HttpServletRequest request, HttpServletResponse response) { this.headers = ServletUtil.extractHttpHeaders(request); this.httpMethod = request.getMethod().toUpperCase(); this.request = request; this.response = response; }
public RequestImpl(HttpServletRequest request, HttpServletResponse response) { this.headers = ServletUtil.extractHttpHeaders(request); this.httpMethod = request.getMethod().toUpperCase(); this.request = request; this.response = response; }
public RequestImpl(HttpServletRequest request, HttpServletResponse response) { this.headers = ServletUtil.extractHttpHeaders(request); this.httpMethod = request.getMethod().toUpperCase(); this.request = request; this.response = response; }
try headers = ServletUtil.extractHttpHeaders(request); uriInfo = ServletUtil.extractUriInfo(request, servletMappingPrefix);
@Produces @RequestScoped @JaxRsQualifier public HttpHeaders getHttpHeaders() { return ServletUtil.extractHttpHeaders(getHttpServletRequest()); }
@Produces @RequestScoped @JaxRsQualifier public HttpHeaders getHttpHeaders() { return ServletUtil.extractHttpHeaders(getHttpServletRequest()); }
@Produces @RequestScoped @JaxRsQualifier public HttpHeaders getHttpHeaders() { return ServletUtil.extractHttpHeaders(getHttpServletRequest()); }
@Produces @RequestScoped @JaxRsQualifier public HttpHeaders getHttpHeaders() { return ServletUtil.extractHttpHeaders(getHttpServletRequest()); }
HttpHeaders headers = ServletUtil.extractHttpHeaders(request); UriInfoImpl uriInfo = extractUriInfo(request, application.getResourcePathPrefix());
try headers = ServletUtil.extractHttpHeaders(request); uriInfo = ServletUtil.extractUriInfo(request, servletMappingPrefix);
try headers = ServletUtil.extractHttpHeaders(request); uriInfo = ServletUtil.extractUriInfo(request, servletMappingPrefix);
try headers = ServletUtil.extractHttpHeaders(request); uriInfo = ServletUtil.extractUriInfo(request, servletMappingPrefix);