|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jena.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(String headerString)
Parse an HTTP Accept (or etc) header string. |
|
| Method Summary | |
|---|---|
static AcceptList |
create(MediaType... acceptItems)
Create a list of accept items from the give MediaTypes. |
static AcceptList |
create(String... acceptStrings)
Create a list of accept items from strings. |
MediaRange |
first()
|
static MediaType |
match(AcceptList proposalList,
AcceptList offerList)
Find the best thing in offer list 8sever side) matching the proposal (client, Accept header). |
MediaRange |
match(MediaType offer)
Find and return a match for a specific MediaType. |
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(String headerString)
headerString - | Method Detail |
|---|
public static AcceptList create(MediaType... acceptItems)
acceptItems - public static AcceptList create(String... acceptStrings)
acceptStrings - public MediaRange match(MediaType offer)
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 | |||||||||