Package com.sodius.oslc.core.ldp.model
Class PagingLink
- java.lang.Object
-
- com.sodius.oslc.core.ldp.model.PagingLink
-
public class PagingLink extends Object
Provides utilities to help with the implementation of LDP Paging, as defined in the following W3C specification: https://www.w3.org/TR/ldp-paging/- Since:
- 1.12.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PagingLink.PagingLinkBuilder
BuildsLink
headers to handle LDP pagination.
-
Constructor Summary
Constructors Constructor Description PagingLink()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PagingLink.PagingLinkBuilder
builder()
Creates a new LDP Paging Link builder.String
createLinkHeader()
Creates aLink
header value from this PagingLink.static PagingLink.PagingLinkBuilder
pageBuilder()
Creates a LDP Paging Link builder initialized with thehttp://www.w3.org/ns/ldp#Page
type.
-
-
-
Method Detail
-
builder
public static PagingLink.PagingLinkBuilder builder()
Creates a new LDP Paging Link builder.- Returns:
- a LDP page link builder
-
pageBuilder
public static PagingLink.PagingLinkBuilder pageBuilder()
Creates a LDP Paging Link builder initialized with thehttp://www.w3.org/ns/ldp#Page
type. It tells the client that the response is an in-sequence page resource, and therefore it needs to examine the other response headers to see if more data existed in the canonical paged resource when the response was generated by the server.- Returns:
- a LDP page link builder
-
createLinkHeader
public String createLinkHeader()
Creates aLink
header value from this PagingLink.- Returns:
- a Link header value
-
-