public class FormatCitationResource extends BaseCitationResource
"\"style\" can be chosen from the list of style names found in the CSL style repository. Many styles are supported, including common styles such as apa and harvard3
Modifier and Type | Field and Description |
---|---|
private String |
doiName
The digital object identifier to format.
|
private String |
language
The language to format.
|
private String |
style
The style of formatting.
|
DOI_PARAMETER, LANG_PARAMETER, LOG, STYLE_PARAMETER
Constructor and Description |
---|
FormatCitationResource() |
Modifier and Type | Method and Description |
---|---|
private void |
checkInputs()
Checks input parameters
|
protected void |
describeGet(org.restlet.ext.wadl.MethodInfo info)
Describes the Get Method.
|
protected void |
doInit()
Init by getting doi, lang and style values.
|
String |
getFormat()
Returns the formatted citation.
|
getApp, listRepresentation
addRequestDocToMethod, addRequestDocToMethod, addRequestDocToMethod, addResponseDocToMethod, createQueryParamDoc, createQueryRepresentationDoc, createResponseDoc, createResponseDoc, createResponseDoc, htmlRepresentation, isObjectExist, isObjectNotExist, isValueExist, isValueNotExist, stringRepresentation
canDescribe, createHtmlRepresentation, createWadlRepresentation, describe, describe, describe, describe, describe, describe, describe, describe, describeDelete, describeMethod, describeMethod, describeOptions, describeParameters, describePatch, describePost, describePut, getDescription, getName, getParameter, getParameters, getPreferredWadlVariant, getResourcePath, getResourcesBase, getWadlVariants, isAutoDescribing, options, setAutoDescribing, setDescription, setName
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getInfo, getInfo, getOnSent, getPreferredVariant, getRole, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, patch, patch, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
doError, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toBoolean, toByte, toDouble, toFloat, toInteger, toLong, toObject, toRepresentation, toRepresentation, toRepresentation, toShort, toString
private volatile String doiName
private volatile String style
private volatile String language
protected void doInit() throws org.restlet.resource.ResourceException
doInit
in class BaseCitationResource
org.restlet.resource.ResourceException
- - if a problem happens@Requirement(reqId="DOI_SRV_120",reqName="Formatage d\u2019une citation") @Requirement(reqId="DOI_MONIT_020",reqName="Monitoring de l\'\u00e9tat de DataCite") @Get public String getFormat() throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
- - if a problem happens when requesting Cross
Cite or if BaseCitationResource.DOI_PARAMETER
and BaseCitationResource.LANG_PARAMETER
and
BaseCitationResource.STYLE_PARAMETER
are not setprivate void checkInputs() throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
- - if BaseCitationResource.DOI_PARAMETER
and
BaseCitationResource.LANG_PARAMETER
and BaseCitationResource.STYLE_PARAMETER
are not set@Requirement(reqId="DOI_DOC_010", reqName="Documentation des interfaces") protected final void describeGet(org.restlet.ext.wadl.MethodInfo info)
describeGet
in class org.restlet.ext.wadl.WadlServerResource
info
- Wadl descriptionCopyright © 2017–2020 CNES. All rights reserved.