org.restlet.engine.header
Class ProductReader

java.lang.Object
  extended by org.restlet.engine.header.ProductReader

public class ProductReader
extends Object

User agent header reader.

Author:
Thierry Boileau

Method Summary
static List<Product> read(String userAgent)
          Parses the given user agent String to a list of Product instances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public static List<Product> read(String userAgent)
                          throws IllegalArgumentException
Parses the given user agent String to a list of Product instances.

Parameters:
userAgent -
Returns:
the List of Product objects parsed from the String
Throws:
IllegalArgumentException - Thrown if the String can not be parsed as a list of Product instances.


Copyright © 2005-2013 Restlet.