Package org.fcrepo.http.commons
Class AbstractResource
- java.lang.Object
-
- org.fcrepo.http.commons.AbstractResource
-
- Direct Known Subclasses:
FedoraBaseResource
public class AbstractResource extends Object
Superclass for Fedora JAX-RS Resources, providing convenience fields and methods.- Author:
- ajs6f
-
-
Field Summary
Fields Modifier and Type Field Description protected UniqueValueSupplier
defaultPidMinter
protected FedoraPropsConfig
fedoraPropsConfig
protected javax.ws.rs.core.HttpHeaders
headers
For getting user agentprotected Supplier<String>
pidMinter
A resource that can mint new Fedora PIDs.protected ResourceFactory
resourceFactory
protected javax.ws.rs.core.UriInfo
uriInfo
Useful for constructing URLsprotected VersionService
versionService
The version service
-
Constructor Summary
Constructors Constructor Description AbstractResource()
-
-
-
Field Detail
-
fedoraPropsConfig
@Inject protected FedoraPropsConfig fedoraPropsConfig
-
uriInfo
@Context protected javax.ws.rs.core.UriInfo uriInfo
Useful for constructing URLs
-
headers
@Context protected javax.ws.rs.core.HttpHeaders headers
For getting user agent
-
resourceFactory
@Inject protected ResourceFactory resourceFactory
-
versionService
@Inject protected VersionService versionService
The version service
-
pidMinter
@Inject @Optional protected Supplier<String> pidMinter
A resource that can mint new Fedora PIDs.
-
defaultPidMinter
protected UniqueValueSupplier defaultPidMinter
-
-
Constructor Detail
-
AbstractResource
public AbstractResource()
-
-