public SendGridContentHandler register ( final Class < ? extends Content > clazz , final SendGridContentHandler handler ) { if ( handler == null ) { throw new IllegalArgumentException ( "[handler] cannot be null" ) ; } if ( clazz == null ) { throw new IllegalArgumentException ( "[clazz] cannot be null" ) ; } LOG . debug ( "Registering content handler {} for content type {}" , handler , clazz ) ; return handlers . put ( clazz , handler ) ; }
Registers a handler for a given content type .