Spring Integration

org.springframework.integration.http
Interface ContentTypeResolver


public interface ContentTypeResolver

Strategy for resolving the content type of a given object. The content type will be represented as an instance of the MediaType enum.

Since:
2.0
Author:
Mark Fisher

Method Summary
 MediaType resolveContentType(Object content)
          Resolves the content type of a given object.
 MediaType resolveContentType(String content, String charset)
          Resolves the content type of a given String instance and charset name.
 

Method Detail

resolveContentType

MediaType resolveContentType(Object content)
Resolves the content type of a given object.

Parameters:
content - the object whose content type should be resolved

resolveContentType

MediaType resolveContentType(String content,
                             String charset)
Resolves the content type of a given String instance and charset name.

Parameters:
content - the String whose content type should be resolved
charset - charset name

Spring Integration

Copyright © 2010. All Rights Reserved.