本文整理匯總了Java中org.springframework.http.MediaType.ALL屬性的典型用法代碼示例。如果您正苦於以下問題:Java MediaType.ALL屬性的具體用法?Java MediaType.ALL怎麽用?Java MediaType.ALL使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.springframework.http.MediaType
的用法示例。
在下文中一共展示了MediaType.ALL屬性的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: ByteArrayHttpMessageConverter
/** Creates a new instance of the {@code ByteArrayHttpMessageConverter}. */
public ByteArrayHttpMessageConverter() {
super(new MediaType("application", "octet-stream"), MediaType.ALL);
}
示例2: FastJsonHttpMessageConverter
/**
* Can serialize/deserialize all types.
*/
public FastJsonHttpMessageConverter() {
super(MediaType.ALL);
}
示例3: SpringHttpMessageConverter
public SpringHttpMessageConverter() {
super(new MediaType("text", "plain", DEFAULT_CHARSET), MediaType.ALL);
this.availableCharsets = new ArrayList<Charset>(Charset.availableCharsets().values());
}
示例4: ResourceHttpMessageConverter
public ResourceHttpMessageConverter() {
super(MediaType.ALL);
}
示例5: StringHttpMessageConverter
/**
* A constructor accepting a default charset to use if the requested content
* type does not specify one.
*/
public StringHttpMessageConverter(Charset defaultCharset) {
super(new MediaType("text", "plain", defaultCharset), MediaType.ALL);
this.defaultCharset = defaultCharset;
this.availableCharsets = new ArrayList<Charset>(Charset.availableCharsets().values());
}
示例6: SerializableObjectHttpMessageConverter
public SerializableObjectHttpMessageConverter() {
super(MediaType.APPLICATION_OCTET_STREAM, MediaType.ALL);
}
示例7: WxHttpInputMessageConverter
public WxHttpInputMessageConverter() {
super(MediaType.APPLICATION_OCTET_STREAM, MediaType.ALL);
}