Class MediaTypeMapping
java.lang.Object
fr.paris.lutece.plugins.rest.service.mediatype.MediaTypeMapping
MediaTypeMapping use to map extensions (ex: xml) to media type (application/xml). Extension should not contain the dot "." prefix.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the extensionjakarta.ws.rs.core.MediaTypeGets the media typevoidsetExtension(String strExtension) Sets the extensionvoidsetMediaType(jakarta.ws.rs.core.MediaType mediaType) Sets the media type
-
Constructor Details
-
MediaTypeMapping
public MediaTypeMapping()
-
-
Method Details
-
getMediaType
public jakarta.ws.rs.core.MediaType getMediaType()Gets the media type- Returns:
- the media type
-
setMediaType
public void setMediaType(jakarta.ws.rs.core.MediaType mediaType) Sets the media type- Parameters:
mediaType- the media type
-
getExtension
Gets the extension- Returns:
- the extension
-
setExtension
Sets the extension- Parameters:
strExtension- the extension
-