@BasePathAwareController public class ProfileController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROFILE_ROOT_MAPPING |
static String |
RESOURCE_PROFILE_MAPPING |
| Constructor and Description |
|---|
ProfileController(RepositoryRestConfiguration configuration,
RepositoryResourceMappings mappings,
Repositories repositories)
Wire up the controller with a copy of
RepositoryRestConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
static String |
getPath(RepositoryRestConfiguration configuration,
ResourceMapping mapping)
Return the href for the profile link of a given baseUri and domain type mapping.
|
static String |
getRootPath(RepositoryRestConfiguration configuration)
Return the href for the profile root link of a given baseUri.
|
HttpEntity<?> |
profileOptions()
List the OPTIONS for this controller.
|
public static final String PROFILE_ROOT_MAPPING
public static final String RESOURCE_PROFILE_MAPPING
@Autowired public ProfileController(RepositoryRestConfiguration configuration, RepositoryResourceMappings mappings, Repositories repositories)
RepositoryRestConfiguration.configuration - must not be null.mappings - must not be null.repositories - must not be null.@RequestMapping(value="/profile", method=OPTIONS) public HttpEntity<?> profileOptions()
public static String getRootPath(RepositoryRestConfiguration configuration)
configuration - is the source of the app's baseUri.public static String getPath(RepositoryRestConfiguration configuration, ResourceMapping mapping)
configuration - is the source of the app's baseUri.mapping - provides the resource's path.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.