Class AcceptImpl
java.lang.Object
cool.scx.http.headers.accept.AcceptImpl
- All Implemented Interfaces:
Accept,AcceptWritable,Iterable<MediaRange>
AcceptsImpl
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(MediaRange mediaRange) booleancontains(ScxMediaType mediaType) 判断提供的 媒体类型是否包含 内部采用 精确匹配booleanisAcceptable(ScxMediaType mediaType) 判断提供的 媒体类型是否支持 内部采用 模糊匹配iterator()final <T extends ScxMediaType>
Tnegotiate(T... serverSupportedTypes) 根据提供的媒体类型列表 找到最优支持remove(MediaRange mediaRange) longsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AcceptImpl
public AcceptImpl() -
AcceptImpl
-
-
Method Details
-
size
-
isAcceptable
Description copied from interface:Accept判断提供的 媒体类型是否支持 内部采用 模糊匹配- Specified by:
isAcceptablein interfaceAccept
-
negotiate
Description copied from interface:Accept根据提供的媒体类型列表 找到最优支持 -
contains
Description copied from interface:Accept判断提供的 媒体类型是否包含 内部采用 精确匹配 -
iterator
- Specified by:
iteratorin interfaceIterable<MediaRange>
-
add
- Specified by:
addin interfaceAcceptWritable
-
remove
- Specified by:
removein interfaceAcceptWritable
-