|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openjena.atlas.web.AcceptList
public class AcceptList
| Constructor Summary | |
|---|---|
AcceptList(List<MediaRange> mediaRanges)
Create a list of accept items from the give strings. |
|
AcceptList(MediaRange... acceptItems)
Create a list of accept items from the give MediaTypes. |
|
AcceptList(MediaType... acceptItems)
Create a list of accept items from the give MediaTypes. |
|
AcceptList(String... acceptStrings)
Create a list of accept items from strings. |
|
AcceptList(String headerString)
Parse an HTTP Accept (or etc) header string. |
|
| Method Summary | |
|---|---|
MediaRange |
first()
|
static MediaType |
match(AcceptList proposalList,
AcceptList offerList)
Find the best thing in offer list with the proposal "best" means highest q value, with left most being better for same q. |
MediaRange |
match(MediaRange aItem)
Find and return a match for a MediaRange |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AcceptList(List<MediaRange> mediaRanges)
mediaRanges - public AcceptList(MediaRange... acceptItems)
acceptItems - public AcceptList(MediaType... acceptItems)
acceptItems - public AcceptList(String... acceptStrings)
acceptStrings - public AcceptList(String headerString)
headerString - | Method Detail |
|---|
public MediaRange match(MediaRange aItem)
public static MediaType match(AcceptList proposalList,
AcceptList offerList)
proposalList - Client list of possibilitiesofferList - Server list of possibilities
public MediaRange first()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||