Package fr.becpg.repo.report.helpers
Class ReportUtils
java.lang.Object
fr.becpg.repo.report.helpers.ReportUtils
ReportUtils class.
- Author:
- matthieu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanstatic StringgetReportExtension(String tplName, fr.becpg.report.client.ReportFormat reportFormat) getReportExtension.static booleanisClientAbort(Throwable throwable) Tells whether a failure means the caller gave up rather than that the report failed.
-
Field Details
-
SERVLET_CONNECTOR_PACKAGE
- See Also:
-
-
Constructor Details
-
ReportUtils
private ReportUtils()Constructor for ReportUtils.
-
-
Method Details
-
getReportExtension
public static String getReportExtension(String tplName, fr.becpg.report.client.ReportFormat reportFormat) getReportExtension.
-
isClientAbort
Tells whether a failure means the caller gave up rather than that the report failed.
It takes several shapes: the client of the report server raises a
ReportClientAbortExceptionwhen writing the report back fails, the connector raises its ownClientAbortException, and a severed connection surfaces as aSocketException. Tomcat also refuses a write on a closed response with a plainIOExceptionwhose message is localized — which is why the client raises a type of its own instead of leaving that one to be matched on its text.Container and client types are matched by name so that this class depends on neither.
- Parameters:
throwable- aThrowableobject- Returns:
- true when the exchange was abandoned by the caller
-
failedWritingTheResponse
-