private boolean isPayloadIndirectOrDirect ( final HttpServletRequest request ) { return Collections . list ( request . getHeaders ( "Link" ) ) . stream ( ) . map ( Link :: valueOf ) . map ( Link :: getUri ) . anyMatch ( l -> directOrIndirect . contains ( l ) ) ; }
Is the request to create an indirect or direct container .