Class BitstreamEventProcessor
- java.lang.Object
-
- org.dspace.statistics.export.processor.ExportEventProcessor
-
- org.dspace.statistics.export.processor.BitstreamEventProcessor
-
public class BitstreamEventProcessor extends ExportEventProcessor
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
Constructors Constructor Description BitstreamEventProcessor(Context context, javax.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringaddObjectSpecificData(String string, Bitstream bitstream)Adds additional item and bitstream data to the urlvoidprocessEvent()Process the event Check if the item should be processed Create the url to be transmitted based on item and bitstream data-
Methods inherited from class org.dspace.statistics.export.processor.ExportEventProcessor
getBaseParameters, getCurrentDateString, processObject, shouldProcessEntityType, shouldProcessItem, shouldProcessItemType
-
-
-
-
Constructor Detail
-
BitstreamEventProcessor
public BitstreamEventProcessor(Context context, javax.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 Detail
-
processEvent
public void processEvent() throws SQLException, IOExceptionProcess 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
-
-