Class BitstreamEventProcessor
java.lang.Object
org.dspace.statistics.export.processor.ExportEventProcessor
org.dspace.statistics.export.processor.BitstreamEventProcessor
Processor that handles Bitstream events from the IrusExportUsageEventListener
-
Field Summary
Fields inherited from class org.dspace.statistics.export.processor.ExportEventProcessor
BITSTREAM_DOWNLOAD, ENTITY_TYPE_DEFAULT, ITEM_VIEW, UTF_8 -
Constructor Summary
ConstructorsConstructorDescriptionBitstreamEventProcessor(Context context, jakarta.servlet.http.HttpServletRequest request, Bitstream bitstream) Creates a new BitstreamEventProcessor that will set the params and obtain the parent item of the bitstream -
Method Summary
Modifier and TypeMethodDescriptionprotected StringaddObjectSpecificData(String string, Bitstream bitstream) Adds additional item and bitstream data to the urlvoidProcess the event Check if the item should be processed Create the url to be transmitted based on item and bitstream dataMethods inherited from class org.dspace.statistics.export.processor.ExportEventProcessor
getBaseParameters, getCurrentDateString, processObject, shouldProcessEntityType, shouldProcessItem, shouldProcessItemType
-
Constructor Details
-
BitstreamEventProcessor
public BitstreamEventProcessor(Context context, jakarta.servlet.http.HttpServletRequest request, Bitstream bitstream) throws SQLException Creates a new BitstreamEventProcessor that will set the params and obtain the parent item of the bitstream- Parameters:
context-request-bitstream-- Throws:
SQLException
-
-
Method Details
-
processEvent
Process the event Check if the item should be processed Create the url to be transmitted based on item and bitstream data- Specified by:
processEventin classExportEventProcessor- Throws:
SQLExceptionIOException
-
addObjectSpecificData
protected String addObjectSpecificData(String string, Bitstream bitstream) throws UnsupportedEncodingException Adds additional item and bitstream data to the url- Parameters:
string- to which the additional data needs to be addedbitstream-- Returns:
- the string with additional data
- Throws:
UnsupportedEncodingException
-