Package com.intuit.karate.http
Enum Class ResourceType
- All Implemented Interfaces:
Serializable,Comparable<ResourceType>,Constable
- Author:
- pthomas3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceTypestatic ResourceTypefromFileExtension(String path) static ResourceTypefromObject(Object o) static ResourceTypefromObject(Object o, ResourceType defaultType) booleanisBinary()booleanisHtml()booleanisImage()booleanisJson()booleanisScript()booleanisText()booleanbooleanisVideo()booleanisXml()static ResourceTypeReturns the enum constant of this class with the specified name.static ResourceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFERRED_JS
-
JS
-
JSON
-
CSS
-
MAP
-
ICO
-
PNG
-
GIF
-
JPG
-
SVG
-
MP4
-
PDF
-
HTML
-
XML
-
TEXT
-
WOFF2
-
MULTIPART
-
URLENCODED
-
BINARY
-
RDFXML
-
NTRIPLES
-
TURTLE
-
NQUADS
-
TRIG
-
N3
-
JSONLD
-
-
Field Details
-
contentType
-
contentLike
-
extensions
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromFileExtension
-
getExtension
-
isVideo
public boolean isVideo() -
isImage
public boolean isImage() -
isUrlEncodedOrMultipart
public boolean isUrlEncodedOrMultipart() -
isHtml
public boolean isHtml() -
isJson
public boolean isJson() -
isXml
public boolean isXml() -
isText
public boolean isText() -
isBinary
public boolean isBinary() -
isScript
public boolean isScript() -
fromContentType
-
fromObject
-
fromObject
-