net.sf.javaprinciples.resource
Interface ResourceIdentifierParser


public interface ResourceIdentifierParser

Interface representing a method of parsing some form of URI into a ResourceIdentifier. Currently this only supports parsing a String representation of a URI, however it is possible that in future it might need to also support parsing a URI object. It's not here now, 'cause YAGNI.

Author:
rvl

Method Summary
 ResourceIdentifier parse(javax.servlet.http.HttpServletRequest request)
          Parse the provided String version of a URI to produce a ResourceIdentifier.
 

Method Detail

parse

ResourceIdentifier parse(javax.servlet.http.HttpServletRequest request)
                         throws ResourceParseException
Parse the provided String version of a URI to produce a ResourceIdentifier.

Parameters:
request - The request containing the URI attributes to parse.
Returns:
A ResourceIdentifier containing the elements of the URI that identify the Resource.
Throws:
ResourceParseException - if there is any problem encountered parsing the URI.


Copyright © 2013. All Rights Reserved.