public class ContentTypeHelper extends Object
Constructor and Description |
---|
ContentTypeHelper(Properties properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
isTextContentType(org.apache.http.HttpResponse httpResponse)
Check whether the given request's content-type corresponds to "parseable" text.
|
boolean |
isTextContentType(String contentType)
Check whether the given content-type corresponds to "parseable" text.
|
public ContentTypeHelper(Properties properties)
public boolean isTextContentType(org.apache.http.HttpResponse httpResponse)
httpResponse
- the response to analyze depending on its content-typepublic boolean isTextContentType(String contentType)
contentType
- the input content-typeCopyright © 2008–2018. All rights reserved.