Package sk.antons.web.filter.log
Class SimplePrintable
- java.lang.Object
-
- sk.antons.web.filter.log.SimplePrintable
-
- All Implemented Interfaces:
Printable
public class SimplePrintable extends Object implements Printable
Siple implementation for printable- empty content type
- starting with "text/"
- "application/json"
- "application/*+json"
- any content type containg "json"
- "application/xml"
- "application/xml"
- "application/*+xml"
- starts with "application/x-www-form-urlencoded"))
- Author:
- antons
-
-
Constructor Summary
Constructors Constructor Description SimplePrintable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPrintable(String contentType)Checks content type value
-
-
-
Method Detail
-
isPrintable
public boolean isPrintable(String contentType)
Description copied from interface:PrintableChecks content type value- Specified by:
isPrintablein interfacePrintable- Parameters:
contentType- content type- Returns:
- true is content type is printable content type.
-
-