@Component public class LinkServiceImpl extends Object implements LinkService
Constructor and Description |
---|
LinkServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addLinks(AbstractRestModel resource,
javax.ws.rs.core.UriInfo uriInfo)
Add links to the resource.
|
void |
addLinks(AbstractRestModel resource,
javax.ws.rs.core.UriInfo uriInfo,
String resourceLocation)
Add links to the resource.
|
void |
addPaginationLinks(RestPageModel<?> page,
javax.ws.rs.core.UriInfo uriInfo)
Add pagination links to the pageResponse.
|
void |
addPaginationLinks(RestPageModel<?> page,
javax.ws.rs.core.UriInfo uriInfo,
String pageLocation)
Add pagination links to the pageResponse.
|
void |
addPaginationSelfLink(RestPageModel<?> page,
javax.ws.rs.core.UriInfo uriInfo,
String pageLocation)
Add pagination self link only to the pageResponse.
|
public void addLinks(@NotNull AbstractRestModel resource, @NotNull javax.ws.rs.core.UriInfo uriInfo)
LinkService
addLinks
in interface LinkService
resource
- the resource ready to go back to the useruriInfo
- information about the current requestpublic void addLinks(@NotNull AbstractRestModel resource, @NotNull javax.ws.rs.core.UriInfo uriInfo, @NotNull String resourceLocation)
LinkService
addLinks
in interface LinkService
resource
- the resource ready to go back to the useruriInfo
- information about the current requestresourceLocation
- the url for the resource being returned relative to the base URIpublic void addPaginationLinks(@NotNull RestPageModel<?> page, @NotNull javax.ws.rs.core.UriInfo uriInfo)
LinkService
addPaginationLinks
in interface LinkService
page
- the paged response ready to go back to the useruriInfo
- information about the current requestpublic void addPaginationLinks(@NotNull RestPageModel<?> page, @NotNull javax.ws.rs.core.UriInfo uriInfo, @NotNull String pageLocation)
LinkService
addPaginationLinks
in interface LinkService
page
- the paged response ready to go back to the useruriInfo
- information about the current requestpageLocation
- the url for the resource being pagedpublic void addPaginationSelfLink(@NotNull RestPageModel<?> page, @NotNull javax.ws.rs.core.UriInfo uriInfo, @NotNull String pageLocation)
LinkService
addPaginationSelfLink
in interface LinkService
page
- the paged response ready to go back to the useruriInfo
- information about the current requestpageLocation
- the url for the resource being pagedCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.