Results 1 to 3 of 3

Thread: Access to Http Headers in EndpointInvocationChain

  1. #1
    Join Date
    Jun 2008
    Posts
    21

    Default Access to Http Headers in EndpointInvocationChain

    Hello,

    I need to have Http headers accessible in my EndpointInvocationChain. Right now, the MessageDispatcherServlet passes on Body only.

    What will be the best way to make the http headers available?

  2. #2
    Join Date
    Dec 2005
    Posts
    24

    Default

    From the reference documentation
    http://static.springframework.org/sp...nsport-context
    Code:
    TransportContext context = TransportContextHolder.getTransportContext();
    HttpServletConnection connection = (HttpServletConnection )context.getConnection();
    HttpServletRequest request = connection.getHttpServletRequest();

  3. #3
    Join Date
    Jun 2008
    Posts
    21

    Default

    *thwaps his head*.

    thanks sroach.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •