public abstract class AbstractJaxRsProvider extends Object implements IRestfulServerDefaults
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJaxRsProvider()
Default is DSTU2.
|
protected |
AbstractJaxRsProvider(ca.uhn.fhir.context.FhirContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
ca.uhn.fhir.context.api.AddProfileTagEnum |
getAddProfileTag()
DEFAULT = AddProfileTagEnum.NEVER
|
String |
getBaseForRequest()
This method returns the server base, including the resource path.
|
String |
getBaseForServer()
This method returns the server base, independent of the request or resource.
|
ca.uhn.fhir.rest.api.EncodingEnum |
getDefaultResponseEncoding()
DEFAULT = EncodingEnum.JSON
|
ElementsSupportEnum |
getElementsSupport()
DEFAULT =
ElementsSupportEnum.STANDARD |
ETagSupportEnum |
getETagSupport()
DEFAULT = ETagSupportEnum.DISABLED
|
ca.uhn.fhir.context.FhirContext |
getFhirContext() |
javax.ws.rs.core.HttpHeaders |
getHeaders()
Get the headers
|
List<IServerInterceptor> |
getInterceptors_()
Default: an empty list of interceptors (Interceptors are not yet supported
in the JAX-RS server).
|
ca.uhn.fhir.interceptor.api.IInterceptorService |
getInterceptorService() |
IPagingProvider |
getPagingProvider()
By default, no paging provider is used
|
Map<String,String[]> |
getParameters()
This method returns the query parameters
|
JaxRsRequest.Builder |
getRequest(ca.uhn.fhir.rest.api.RequestTypeEnum requestType,
ca.uhn.fhir.rest.api.RestOperationTypeEnum restOperation)
Return the requestbuilder for the server
|
JaxRsRequest.Builder |
getRequest(ca.uhn.fhir.rest.api.RequestTypeEnum requestType,
ca.uhn.fhir.rest.api.RestOperationTypeEnum restOperation,
String theResourceName)
Return the requestbuilder for the server
|
IServerAddressStrategy |
getServerAddressStrategy()
This method returns the default server address strategy.
|
javax.ws.rs.core.UriInfo |
getUriInfo()
Get the uriInfo
|
javax.ws.rs.core.Response |
handleException(JaxRsRequest theRequest,
Throwable theException)
Convert an exception to a response
|
boolean |
isDefaultPrettyPrint()
DEFAULT = true
|
void |
setHeaders(javax.ws.rs.core.HttpHeaders headers)
Set the headers
|
void |
setUriInfo(javax.ws.rs.core.UriInfo uriInfo)
Set the Uri Info
|
boolean |
withStackTrace()
DEFAULT = false
|
protected AbstractJaxRsProvider()
AbstractJaxRsProvider(FhirContext) to specify a DSTU3 context.protected AbstractJaxRsProvider(ca.uhn.fhir.context.FhirContext ctx)
ctx - the FhirContext to support.public ca.uhn.fhir.interceptor.api.IInterceptorService getInterceptorService()
getInterceptorService in interface IRestfulServerDefaultspublic ca.uhn.fhir.context.api.AddProfileTagEnum getAddProfileTag()
getAddProfileTag in interface IRestfulServerDefaultspublic String getBaseForRequest()
UriInfo#getBaseUri()public String getBaseForServer()
UriInfo.getBaseUri()public ca.uhn.fhir.rest.api.EncodingEnum getDefaultResponseEncoding()
getDefaultResponseEncoding in interface IRestfulServerDefaultspublic ETagSupportEnum getETagSupport()
getETagSupport in interface IRestfulServerDefaultspublic ElementsSupportEnum getElementsSupport()
ElementsSupportEnum.STANDARDgetElementsSupport in interface IRestfulServerDefaultspublic ca.uhn.fhir.context.FhirContext getFhirContext()
getFhirContext in interface IRestfulServerDefaultspublic javax.ws.rs.core.HttpHeaders getHeaders()
public List<IServerInterceptor> getInterceptors_()
getInterceptors_ in interface IRestfulServerDefaultsIRestfulServerDefaults.getInterceptors_()public IPagingProvider getPagingProvider()
getPagingProvider in interface IRestfulServerDefaultspublic Map<String,String[]> getParameters()
public JaxRsRequest.Builder getRequest(ca.uhn.fhir.rest.api.RequestTypeEnum requestType, ca.uhn.fhir.rest.api.RestOperationTypeEnum restOperation)
requestType - the type of the requestrestOperation - the rest operation typepublic JaxRsRequest.Builder getRequest(ca.uhn.fhir.rest.api.RequestTypeEnum requestType, ca.uhn.fhir.rest.api.RestOperationTypeEnum restOperation, String theResourceName)
requestType - the type of the requestrestOperation - the rest operation typetheResourceName - the resource namepublic IServerAddressStrategy getServerAddressStrategy()
getBaseForRequest()public javax.ws.rs.core.UriInfo getUriInfo()
public javax.ws.rs.core.Response handleException(JaxRsRequest theRequest, Throwable theException) throws IOException
theRequest - the incoming requesttheException - the exception to convertIOExceptionpublic boolean isDefaultPrettyPrint()
isDefaultPrettyPrint in interface IRestfulServerDefaultspublic void setHeaders(javax.ws.rs.core.HttpHeaders headers)
headers - the headers to setpublic void setUriInfo(javax.ws.rs.core.UriInfo uriInfo)
uriInfo - the uri infopublic boolean withStackTrace()
Copyright © 2014–2019 University Health Network. All rights reserved.