@ Override public boolean apply ( final WarcRecord x ) { Header messageType = x . getWarcHeader ( WarcHeader . Name . CONTENT_TYPE ) ; return ( x . getWarcType ( ) == WarcRecord . Type . RESPONSE ) && ( messageType != null && messageType . getValue ( ) . equals ( HttpResponseWarcRecord . HTTP_RESPONSE_MSGTYPE ) ) ; }
Apply the filter to a WarcRecord