Uses of Enum Class
org.nanonative.nano.services.http.model.ContentType
Packages that use ContentType
-
Uses of ContentType in org.nanonative.nano.services.http.model
Methods in org.nanonative.nano.services.http.model that return ContentTypeModifier and TypeMethodDescriptionHttpObject.accept()HttpObject.contentType()Retrieves the first content types specified in theHttpHeaders.CONTENT_TYPEheader.static ContentTypestatic ContentTypeHttpObject.guessContentType(HttpObject response, byte[] body) static ContentTypeReturns the enum constant of this class with the specified name.static ContentType[]ContentType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.nanonative.nano.services.http.model that return types with arguments of type ContentTypeModifier and TypeMethodDescriptionHttpObject.accepts()HttpObject.contentTypes()Retrieves a list of all content types specified in theHttpHeaders.CONTENT_TYPEheader.Methods in org.nanonative.nano.services.http.model with parameters of type ContentTypeModifier and TypeMethodDescriptionHttpObject.accept(ContentType... contentType) HttpObject.contentType(Charset charset, ContentType... contentType) Sets theHttpHeaders.CONTENT_TYPEheader with specifying aCharset.HttpObject.contentType(ContentType... contentType) Sets theHttpHeaders.CONTENT_TYPEheader without specifying aCharset.booleanHttpObject.hasAccept(ContentType... contentTypes) booleanHttpObject.hasContentType(ContentType contentType) booleanHttpObject.hasContentType(ContentType... contentTypes)