public class AcceptHeaderBuilder extends Object
Constructor and Description |
---|
AcceptHeaderBuilder(Collection<MIMEType> mimeTypes) |
Modifier and Type | Method and Description |
---|---|
static AcceptHeaderBuilder |
fromStrings(Collection<String> typesAsStrings) |
String |
getAcceptHeader()
Builds and returns an accept header.
|
public AcceptHeaderBuilder(Collection<MIMEType> mimeTypes)
public static AcceptHeaderBuilder fromStrings(Collection<String> typesAsStrings)
public String getAcceptHeader()
IllegalArgumentException
- if an input MIME type cannot be parsed.Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.