public class LoggingInterceptor extends Object implements ca.uhn.fhir.rest.client.api.IClientInterceptor
| Constructor and Description |
|---|
LoggingInterceptor()
Constructor for client logging interceptor
|
LoggingInterceptor(boolean theVerbose)
Constructor for client logging interceptor
|
| Modifier and Type | Method and Description |
|---|---|
void |
interceptRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theRequest) |
void |
interceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse) |
void |
setLogger(org.slf4j.Logger theLogger)
Sets a logger to use to log messages (default is a logger with this class' name).
|
void |
setLogRequestBody(boolean theValue)
Should a summary (one line) for each request be logged, containing the URL and other information
|
void |
setLogRequestHeaders(boolean theValue)
Should headers for each request be logged, containing the URL and other information
|
void |
setLogRequestSummary(boolean theValue)
Should a summary (one line) for each request be logged, containing the URL and other information
|
void |
setLogResponseBody(boolean theValue)
Should a summary (one line) for each request be logged, containing the URL and other information
|
void |
setLogResponseHeaders(boolean theValue)
Should headers for each request be logged, containing the URL and other information
|
void |
setLogResponseSummary(boolean theValue)
Should a summary (one line) for each request be logged, containing the URL and other information
|
public LoggingInterceptor()
public LoggingInterceptor(boolean theVerbose)
theVerbose - If set to true, all logging is enabledpublic void interceptRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theRequest)
interceptRequest in interface ca.uhn.fhir.rest.client.api.IClientInterceptorpublic void interceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse) throws IOException
interceptResponse in interface ca.uhn.fhir.rest.client.api.IClientInterceptorIOExceptionpublic void setLogger(org.slf4j.Logger theLogger)
theLogger - The logger to use. Must not be null.public void setLogRequestBody(boolean theValue)
public void setLogRequestHeaders(boolean theValue)
public void setLogRequestSummary(boolean theValue)
public void setLogResponseBody(boolean theValue)
public void setLogResponseHeaders(boolean theValue)
public void setLogResponseSummary(boolean theValue)
Copyright © 2014–2019 University Health Network. All rights reserved.