Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] getting HttpServletRequest and HttpServletResponse from within an advice

Greetings.

Here's my endpoint:

@Path("/foo")
@Produces(MediaType.TEXT_PLAIN)
public class Foo {

@GET
@Path("/bar")
  public String bar() {
    return "hello world"
  }
}

How do I get HttpServletRequest, HttpServletResponse, etc. from within my advice without changing bar's signature?

Regards,
Shackman


Back to the top