public class ResponseHighlighterInterceptor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_RAW
TODO: As of HAPI 1.6 (2016-06-10) this parameter has been replaced with simply
requesting _format=json or xml so eventually this parameter should be removed
|
static String |
PARAM_RAW_TRUE |
static String |
PARAM_TRUE |
| Constructor and Description |
|---|
ResponseHighlighterInterceptor()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleException(RequestDetails theRequestDetails,
ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException theException,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse) |
boolean |
isShowRequestHeaders()
If set to
true (default is false) response will include the
request headers |
boolean |
isShowResponseHeaders()
If set to
true (default is true) response will include the
response headers |
boolean |
outgoingResponse(RequestDetails theRequestDetails,
ResponseDetails theResponseObject,
javax.servlet.http.HttpServletRequest theServletRequest,
javax.servlet.http.HttpServletResponse theServletResponse) |
ResponseHighlighterInterceptor |
setShowRequestHeaders(boolean theShowRequestHeaders)
If set to
true (default is false) response will include the
request headers |
ResponseHighlighterInterceptor |
setShowResponseHeaders(boolean theShowResponseHeaders)
If set to
true (default is true) response will include the
response headers |
public static final String PARAM_RAW
public static final String PARAM_RAW_TRUE
public static final String PARAM_TRUE
public ResponseHighlighterInterceptor()
public boolean handleException(RequestDetails theRequestDetails, ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException theException, javax.servlet.http.HttpServletRequest theServletRequest, javax.servlet.http.HttpServletResponse theServletResponse) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionpublic boolean isShowRequestHeaders()
true (default is false) response will include the
request headerspublic ResponseHighlighterInterceptor setShowRequestHeaders(boolean theShowRequestHeaders)
true (default is false) response will include the
request headerspublic boolean isShowResponseHeaders()
true (default is true) response will include the
response headerspublic ResponseHighlighterInterceptor setShowResponseHeaders(boolean theShowResponseHeaders)
true (default is true) response will include the
response headerspublic boolean outgoingResponse(RequestDetails theRequestDetails, ResponseDetails theResponseObject, javax.servlet.http.HttpServletRequest theServletRequest, javax.servlet.http.HttpServletResponse theServletResponse) throws ca.uhn.fhir.rest.server.exceptions.AuthenticationException
ca.uhn.fhir.rest.server.exceptions.AuthenticationExceptionCopyright © 2014–2019 University Health Network. All rights reserved.