|
eXo JCR :: Component :: Webdav Service 1.15.10-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.webdav.MimeTypeRecognizer
public class MimeTypeRecognizer
Provides means to recognize mime-type information of the content (including mime-type itself and encoding)
| Constructor Summary | |
|---|---|
MimeTypeRecognizer(String fileName,
org.exoplatform.commons.utils.MimeTypeResolver mimeTypeResolver,
javax.ws.rs.core.MediaType mediaType,
boolean untrustedAgent)
Constructor |
|
| Method Summary | |
|---|---|
String |
getEncoding()
Returns encoding according to MediaType or null
no encoding set or MediaType is no available. |
String |
getMimeType()
Returns mime-type of a resource according to MediaType
or MimeTypeResolver information. |
boolean |
isEncodingSet()
Shows if encoding is set via MediaType. |
boolean |
isMimeTypeRecognized()
Shows if mime-type is recognized by MimeTypeResolver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MimeTypeRecognizer(String fileName,
org.exoplatform.commons.utils.MimeTypeResolver mimeTypeResolver,
javax.ws.rs.core.MediaType mediaType,
boolean untrustedAgent)
fileName - - short name of the resourcemimeTypeResolver - - provides means to resolve mime-typemediaType - - media type instance (stores mime-type and encoding)untrustedAgent - - shows if agent to provide resource and it's mime type is listed as trusted
(no mime-type change is allowed for untrusted agents)| Method Detail |
|---|
public boolean isMimeTypeRecognized()
MimeTypeResolver.
public boolean isEncodingSet()
MediaType.
public String getMimeType()
MediaType
or MimeTypeResolver information.
public String getEncoding()
MediaType or null
no encoding set or MediaType is no available.
|
eXo JCR :: Component :: Webdav Service 1.15.10-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||