|
4 | 4 |
|
5 | 5 | import org.rest.common.util.LinkUtil; |
6 | 6 | import org.rest.common.web.WebConstants; |
7 | | -import org.rest.sec.web.common.URIMappingConstants; |
| 7 | +import org.rest.sec.web.common.UriMappingConstants; |
8 | 8 | import org.springframework.http.HttpStatus; |
9 | 9 | import org.springframework.stereotype.Controller; |
10 | 10 | import org.springframework.web.bind.annotation.RequestMapping; |
@@ -39,11 +39,11 @@ public void rootBare(final UriComponentsBuilder uriBuilder, final HttpServletRes |
39 | 39 |
|
40 | 40 | @SuppressWarnings("unused") |
41 | 41 | private void rootInternal(final UriComponentsBuilder uriBuilder, final HttpServletResponse response) { |
42 | | - final String userUriNew = uriBuilder.path("/" + URIMappingConstants.USERS).build().toUriString(); |
| 42 | + final String userUriNew = uriBuilder.path("/" + UriMappingConstants.USERS).build().toUriString(); |
43 | 43 |
|
44 | | - final String userUri = LinkUtil.createLinkHeader(WebConstants.PATH_SEP + URIMappingConstants.USERS, LinkUtil.REL_COLLECTION); |
45 | | - final String roleUri = LinkUtil.createLinkHeader(WebConstants.PATH_SEP + URIMappingConstants.ROLES, LinkUtil.REL_COLLECTION); |
46 | | - final String privilegeUri = LinkUtil.createLinkHeader(WebConstants.PATH_SEP + URIMappingConstants.PRIVILEGES, LinkUtil.REL_COLLECTION); |
| 44 | + final String userUri = LinkUtil.createLinkHeader(WebConstants.PATH_SEP + UriMappingConstants.USERS, LinkUtil.REL_COLLECTION); |
| 45 | + final String roleUri = LinkUtil.createLinkHeader(WebConstants.PATH_SEP + UriMappingConstants.ROLES, LinkUtil.REL_COLLECTION); |
| 46 | + final String privilegeUri = LinkUtil.createLinkHeader(WebConstants.PATH_SEP + UriMappingConstants.PRIVILEGES, LinkUtil.REL_COLLECTION); |
47 | 47 | final String discoveredOperations = LinkUtil.gatherLinkHeaders(userUri, roleUri, privilegeUri); |
48 | 48 | response.addHeader(HttpHeaders.LINK, discoveredOperations); |
49 | 49 | } |
|
0 commit comments