Search:

Type: Posts; User: Json

Search: Search took 0.08 seconds.

  1. Replies
    3
    Views
    11,357

    Re: Set headers for HttpServletRequest object?

    Try response.setHeader() :)

    You can't set any headers on the request because once you have access to the request the headers will already have been read by the web server.

    // Json
  2. Replies
    3
    Views
    11,357

    Re: Set headers for HttpServletRequest object?

    Well in your unit testing you could fire up a jetty webserver and then actually fire off a proper request and let it all work on its own. However you could also create a class that implements the...
Results 1 to 2 of 2