|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.rest.service.mediatype.MediaTypeMapping
public class MediaTypeMapping
MediaTypeMapping use to map extensions (ex: xml) to media type (application/xml). Extension should not contain the dot "." prefix.
| Constructor Summary | |
|---|---|
MediaTypeMapping()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getExtension()
Gets the extension |
javax.ws.rs.core.MediaType |
getMediaType()
Gets the media type |
void |
setExtension(java.lang.String strExtension)
Sets the extension |
void |
setMediaType(javax.ws.rs.core.MediaType mediaType)
Sets the media type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MediaTypeMapping()
| Method Detail |
|---|
public javax.ws.rs.core.MediaType getMediaType()
public void setMediaType(javax.ws.rs.core.MediaType mediaType)
mediaType - the media typepublic java.lang.String getExtension()
public void setExtension(java.lang.String strExtension)
strExtension - the extension
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||