Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
8190b4f7
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8190b4f7
编写于
5月 12, 2011
作者:
A
Arjen Poutsma
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Javadoc
上级
580f35f6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
18 deletion
+18
-18
org.springframework.web/src/main/java/org/springframework/http/MediaType.java
...web/src/main/java/org/springframework/http/MediaType.java
+18
-18
未找到文件。
org.springframework.web/src/main/java/org/springframework/http/MediaType.java
浏览文件 @
8190b4f7
...
...
@@ -187,7 +187,7 @@ public class MediaType implements Comparable<MediaType> {
/**
* Create a new {@
link
MediaType} for the given primary type.
* Create a new {@
code
MediaType} for the given primary type.
* <p>The {@linkplain #getSubtype() subtype} is set to <code>*</code>, parameters empty.
* @param type the primary type
* @throws IllegalArgumentException if any of the parameters contain illegal characters
...
...
@@ -197,7 +197,7 @@ public class MediaType implements Comparable<MediaType> {
}
/**
* Create a new {@
link
MediaType} for the given primary type and subtype.
* Create a new {@
code
MediaType} for the given primary type and subtype.
* <p>The parameters are empty.
* @param type the primary type
* @param subtype the subtype
...
...
@@ -208,7 +208,7 @@ public class MediaType implements Comparable<MediaType> {
}
/**
* Create a new {@
link
MediaType} for the given type, subtype, and character set.
* Create a new {@
code
MediaType} for the given type, subtype, and character set.
* @param type the primary type
* @param subtype the subtype
* @param charSet the character set
...
...
@@ -219,7 +219,7 @@ public class MediaType implements Comparable<MediaType> {
}
/**
* Create a new {@
link
MediaType} for the given type, subtype, and quality value.
* Create a new {@
code
MediaType} for the given type, subtype, and quality value.
*
* @param type the primary type
* @param subtype the subtype
...
...
@@ -231,7 +231,7 @@ public class MediaType implements Comparable<MediaType> {
}
/**
* Copy-constructor that copies the type and subtype of the given {@
link
MediaType},
* Copy-constructor that copies the type and subtype of the given {@
code
MediaType},
* and allows for different parameter.
* @param other the other media type
* @param parameters the parameters, may be <code>null</code>
...
...
@@ -242,7 +242,7 @@ public class MediaType implements Comparable<MediaType> {
}
/**
* Create a new {@
link
MediaType} for the given type, subtype, and parameters.
* Create a new {@
code
MediaType} for the given type, subtype, and parameters.
* @param type the primary type
* @param subtype the subtype
* @param parameters the parameters, may be <code>null</code>
...
...
@@ -372,9 +372,9 @@ public class MediaType implements Comparable<MediaType> {
}
/**
* Indicate whether this {@
link
MediaType} includes the given media type.
* <p>For instance, {@code text/*} includes {@code text/plain}
,
{@code text/html}, and {@code application/*+xml}
* includes {@code application/soap+xml}, etc. This method is
non-symmet
ic.
* Indicate whether this {@
code
MediaType} includes the given media type.
* <p>For instance, {@code text/*} includes {@code text/plain}
and
{@code text/html}, and {@code application/*+xml}
* includes {@code application/soap+xml}, etc. This method is
<b>not</b> symmetr
ic.
* @param other the reference media type with which to compare
* @return <code>true</code> if this media type includes the given media type; <code>false</code> otherwise
*/
...
...
@@ -407,9 +407,9 @@ public class MediaType implements Comparable<MediaType> {
}
/**
* Indicate whether this {@
link
MediaType} is compatible with the given media type.
* Indicate whether this {@
code
MediaType} is compatible with the given media type.
* <p>For instance, {@code text/*} is compatible with {@code text/plain}, {@code text/html}, and vice versa.
* In effect, this method is similar to {@link #includes(MediaType)}, except that it
's
symmetric.
* In effect, this method is similar to {@link #includes(MediaType)}, except that it
<b>is</b>
symmetric.
* @param other the reference media type with which to compare
* @return <code>true</code> if this media type is compatible with the given media type; <code>false</code> otherwise
*/
...
...
@@ -444,7 +444,7 @@ public class MediaType implements Comparable<MediaType> {
}
/**
* Compares this {@
link
MediaType} to another alphabetically.
* Compares this {@
code
MediaType} to another alphabetically.
* @param other media type to compare to
* @see #sortBySpecificity(List)
*/
...
...
@@ -533,7 +533,7 @@ public class MediaType implements Comparable<MediaType> {
/**
* Parse the given String value into a {@
link
MediaType} object,
* Parse the given String value into a {@
code
MediaType} object,
* with this method name following the 'valueOf' naming convention
* (as supported by {@link org.springframework.core.convert.ConversionService}.
* @see #parseMediaType(String)
...
...
@@ -543,7 +543,7 @@ public class MediaType implements Comparable<MediaType> {
}
/**
* Parse the given String into a single {@
link
MediaType}.
* Parse the given String into a single {@
code
MediaType}.
* @param mediaType the string to parse
* @return the media type
* @throws IllegalArgumentException if the string cannot be parsed
...
...
@@ -586,7 +586,7 @@ public class MediaType implements Comparable<MediaType> {
/**
* Parse the given, comma-separated string into a list of {@
link
MediaType} objects.
* Parse the given, comma-separated string into a list of {@
code
MediaType} objects.
* <p>This method can be used to parse an Accept or Content-Type header.
* @param mediaTypes the string to parse
* @return the list of media types
...
...
@@ -605,7 +605,7 @@ public class MediaType implements Comparable<MediaType> {
}
/**
* Return a string representation of the given list of {@
link
MediaType} objects.
* Return a string representation of the given list of {@
code
MediaType} objects.
* <p>This method can be used to for an {@code Accept} or {@code Content-Type} header.
* @param mediaTypes the string to parse
* @return the list of media types
...
...
@@ -624,7 +624,7 @@ public class MediaType implements Comparable<MediaType> {
}
/**
* Sorts the given list of {@
link
MediaType} objects by specificity.
* Sorts the given list of {@
code
MediaType} objects by specificity.
* <p>Given two media types:
* <ol>
* <li>if either media type has a {@linkplain #isWildcardType() wildcard type}, then the media type without the
...
...
@@ -657,7 +657,7 @@ public class MediaType implements Comparable<MediaType> {
}
/**
* Sorts the given list of {@
link
MediaType} objects by quality value.
* Sorts the given list of {@
code
MediaType} objects by quality value.
* <p>Given two media types:
* <ol>
* <li>if the two media types have different {@linkplain #getQualityValue() quality value}, then the media type
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录