no.sesat.search.mode.command
Interface Restful

All Known Subinterfaces:
XmlRestful
All Known Implementing Classes:
AbstractXmlRestful

public interface Restful

SearchCommands that are RESTful should implement this behaviour. http://en.wikipedia.org/wiki/Representational_State_Transfer

Version:
$Id: Restful.java 7225 2009-04-09 00:32:20Z ssmiweve $

Method Summary
 String createRequestURL()
          A RESTful service requires a URL.
 BufferedReader getHttpReader(String encoding)
          Obtain a BufferedReader, in the given encoding, of the RESTful result.
 

Method Detail

createRequestURL

String createRequestURL()
A RESTful service requires a URL. The resource part of the URL is usually constant to the particular command instance, but each search creates a seperate URL.

Returns:
the URL to use to the RESTful service.

getHttpReader

BufferedReader getHttpReader(String encoding)
                             throws IOException
Obtain a BufferedReader, in the given encoding, of the RESTful result. Makes the presumption that the RESTful service returns an ascii and not binary response.

Parameters:
encoding -
Returns:
Throws:
IOException


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.