Class MediaTypeMapping
- java.lang.Object
-
- fr.paris.lutece.plugins.rest.service.mediatype.MediaTypeMapping
-
public class MediaTypeMapping extends Object
MediaTypeMapping use to map extensions (ex: xml) to media type (application/xml). Extension should not contain the dot "." prefix.
-
-
Constructor Summary
Constructors Constructor Description MediaTypeMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExtension()Gets the extensionjavax.ws.rs.core.MediaTypegetMediaType()Gets the media typevoidsetExtension(String strExtension)Sets the extensionvoidsetMediaType(javax.ws.rs.core.MediaType mediaType)Sets the media type
-
-
-
Method Detail
-
getMediaType
public javax.ws.rs.core.MediaType getMediaType()
Gets the media type- Returns:
- the media type
-
setMediaType
public void setMediaType(javax.ws.rs.core.MediaType mediaType)
Sets the media type- Parameters:
mediaType- the media type
-
getExtension
public String getExtension()
Gets the extension- Returns:
- the extension
-
setExtension
public void setExtension(String strExtension)
Sets the extension- Parameters:
strExtension- the extension
-
-