Package springfox.documentation.spi
Class DocumentationType
- java.lang.Object
-
- org.springframework.plugin.metadata.SimplePluginMetadata
-
- springfox.documentation.spi.DocumentationType
-
- All Implemented Interfaces:
org.springframework.plugin.metadata.PluginMetadata
public class DocumentationType extends org.springframework.plugin.metadata.SimplePluginMetadata
-
-
Field Summary
Fields Modifier and Type Field Description static DocumentationType
OAS_30
static DocumentationType
SPRING_WEB
Deprecated.static DocumentationType
SWAGGER_12
static DocumentationType
SWAGGER_2
-
Constructor Summary
Constructors Constructor Description DocumentationType(java.lang.String name, java.lang.String version)
DocumentationType(java.lang.String name, java.lang.String version, org.springframework.http.MediaType mediaType)
Creates a new instance ofSimplePluginMetadata
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
org.springframework.http.MediaType
getMediaType()
int
hashCode()
-
-
-
Field Detail
-
SWAGGER_12
public static final DocumentationType SWAGGER_12
-
SWAGGER_2
public static final DocumentationType SWAGGER_2
-
OAS_30
public static final DocumentationType OAS_30
-
SPRING_WEB
@Deprecated public static final DocumentationType SPRING_WEB
Deprecated.
-
-
Constructor Detail
-
DocumentationType
public DocumentationType(java.lang.String name, java.lang.String version, org.springframework.http.MediaType mediaType)
Creates a new instance ofSimplePluginMetadata
.- Parameters:
name
- must not be null.version
- must not be null.mediaType
- must not be null
-
DocumentationType
public DocumentationType(java.lang.String name, java.lang.String version)
-
-
Method Detail
-
getMediaType
public org.springframework.http.MediaType getMediaType()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classorg.springframework.plugin.metadata.SimplePluginMetadata
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classorg.springframework.plugin.metadata.SimplePluginMetadata
-
-