public interface CapabilityMap
Modifier and Type | Method and Description |
---|---|
void |
addCapability(Capability capability)
Add capability to the CapabilityMap
|
void |
addMediaType(MediaType mediatype)
Add MediaType to the MediaTypeMap
|
void |
addMimetype(MimeType mimetype)
Add Mimetype to the MimetypeMap
|
String |
getAgent() |
Client |
getClient()
Returns the Client for the CapabilityMap
|
Iterator<MimeType> |
getMimeTypes()
Get the mime types that this CapabilityMap supports.
|
MediaType |
getPreferredMediaType() |
MimeType |
getPreferredType() |
boolean |
hasCapability(int capabilityId) |
boolean |
hasCapability(String capability) |
Iterator<MediaType> |
listMediaTypes()
Returns an ordered list of supported media-types, from most preferred
to least preferred
|
void |
setAgent(String userAgent) |
void |
setClient(Client client)
Sets the client for the CapabilityMap
|
void |
setPreferredMediaType(MediaType type)
Sets the preferred MediaType for this CapabilityMap
|
boolean |
supportsMediaType(String media)
Return true if this CapabilityMap supports the given media type
|
boolean |
supportsMimeType(MimeType mimeType) |
String |
toString() |
void setClient(Client client)
client
- The client associated with this mapClient getClient()
void addCapability(Capability capability)
capability
- void addMimetype(MimeType mimetype)
mimetype
- void addMediaType(MediaType mediatype)
mediatype
- to addMimeType getPreferredType()
MediaType getPreferredMediaType()
void setPreferredMediaType(MediaType type)
type
- Iterator<MediaType> listMediaTypes()
String getAgent()
void setAgent(String userAgent)
boolean hasCapability(int capabilityId)
capabilityId
- boolean hasCapability(String capability)
capability
- Iterator<MimeType> getMimeTypes()
boolean supportsMimeType(MimeType mimeType)
mimeType
- boolean supportsMediaType(String media)
media
- the name of a media type registered in the
MediaType registryCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.