org.apache.tuscany.sca.contribution.service
Interface TypeDescriber

All Known Implementing Classes:
PackageTypeDescriberImpl

public interface TypeDescriber

Provide content type for a given resource


Method Summary
 java.lang.String getType(java.net.URL resourceURL, java.lang.String defaultType)
          Get the content type for the specified resource
 

Method Detail

getType

java.lang.String getType(java.net.URL resourceURL,
                         java.lang.String defaultType)
Get the content type for the specified resource

Parameters:
resourceURL - The resource URL
defaultType - The default content type
Returns:
The content type