org.fcrepo.server.rest
Class RestHelper

java.lang.Object
  extended by org.fcrepo.server.rest.RestHelper

public class RestHelper
extends Object


Constructor Summary
RestHelper()
           
 
Method Summary
static javax.ws.rs.core.MediaType getContentType(String format)
          Return the content type represented by the given string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestHelper

public RestHelper()
Method Detail

getContentType

public static javax.ws.rs.core.MediaType getContentType(String format)
Return the content type represented by the given string. If the string does not have a "/", assume it's "text/{format}". For example, if format is "xml", the returned media type will be "text/xml".

Parameters:
format -
Returns:
the content type represented by the given string


Copyright © 2011 DuraSpace. All Rights Reserved.