Skip to content

Instantly share code, notes, and snippets.

Sebastián Garcia sebargarcia

Block or report user

Report or block sebargarcia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sebargarcia
sebargarcia / HelperResource.java
Created Jul 20, 2017 — forked from bowenwr/HelperResource.java
Jersey Pagination Example for Jersey Mailing List Request
View HelperResource.java
public class HelperResource {
public static void setRequestOptions(ContainerRequestContext requestContext, RequestOptions requestOptions) {
requestContext.setProperty("requestOptions", requestOptions);
}
public static boolean isBodyRequested(ContainerRequestContext requestContext) {
// Do not return a body for head methods, but we might want to calculate paging / headers, etc.
// For now this is getting rewritten as GET by Jersey, but it might be changed later:
// https://java.net/jira/browse/JERSEY-2460
You can’t perform that action at this time.