Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: raining/core/Response.java


1   /*
2    * $Author: rahul_kumar $
3    * $Id: Response.java,v 1.1 2003/10/20 17:07:13 rahul_kumar Exp rahul $
4    */
5    
6   package raining.core;
7   
8   /**
9    * Interface for Response, including response header creation.
10   * Remember that headers need to cached as does data.
11   */
12  
13  public interface Response {
14  
15      /** return as a stream of bytes.
16       * preferred since we can use bytes
17       * throughout and avoid costly string to byte conversions.
18       * @return byte array to be sent on socket channel
19       */
20      public byte[] getBytes();
21      /** to start with we use this. */
22      public String getString();
23  
24  
25  } // end of class
26  
27  
28