Package com.noelios.restlet.util

Examples of com.noelios.restlet.util.PreferenceReader


     * @param headerValue
     *            The "Content-type" header to parse.
     */
    public ContentType(String headerValue) {
        try {
            PreferenceReader pr = new PreferenceReader(
                    PreferenceReader.TYPE_MEDIA_TYPE, headerValue);
            Preference pref;
            pref = pr.readPreference();
            this.mediaType = (MediaType) pref.getMetadata();

            String charSet = this.mediaType.getParameters().getFirstValue(
                    "charset");
            if (charSet != null) {
View Full Code Here

TOP

Related Classes of com.noelios.restlet.util.PreferenceReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.