Skip to content

Instantly share code, notes, and snippets.

@nherbaut
Created March 9, 2015 08:46
Show Gist options
  • Select an option

  • Save nherbaut/527d57df91cd09b61408 to your computer and use it in GitHub Desktop.

Select an option

Save nherbaut/527d57df91cd09b61408 to your computer and use it in GitHub Desktop.
Grizzly Context injection
@Inject
private Provider<org.glassfish.grizzly.http.server.Request> grizzlyRequest;
@GET
@Path("get")
public Response getTest() {
System.out.println(grizzlyRequest.get().getRemoteAddr());
//CODE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment