org.exoplatform.services.rest.data
Class MimeTypes
java.lang.Object
org.exoplatform.services.rest.data.MimeTypes
public class MimeTypes
- extends Object
- Version:
- $Id: $
- Author:
- Andrey Parfonov
|
Field Summary |
static String |
ALL
All mimetypes. |
ALL
public static final String ALL
- All mimetypes.
- See Also:
- Constant Field Values
MimeTypes
public MimeTypes(String mimeTypeHeader)
- Parameters:
mimeTypeHeader - the Content-Type HTTP header.
getAsArray
public String[] getAsArray()
- Returns:
- sorted array of mimetype.
- See Also:
org.exoplatform.services.rest.data.HeaderUtils.
hasMimeType
public boolean hasMimeType(String s)
- Check does array has requested mimetype.
- Parameters:
s - requested mimetype.
- Returns:
- result.
toString
public String toString()
- String representation of mimetypes.
- Overrides:
toString in class Object
Copyright © 2009 eXo Platform SAS. All Rights Reserved.