ServerResponse |
package Sight.Agents; import Sight.Agents.util.*; import java.net.*; /** Holds response, returned by the server. Keeps returned * html string al cookies. */ public class ServerResponse implements java.io.Serializable { /** Loaded data (usually html string) */ public final String data; /** Provided cookies. */ public final String[] cookies=new String[0]; /** Base (if given) */ public final String base; /** * Create response after content was loaded with this reader. * Warning: cookie collection is commented out in this * version. */ public ServerResponse(xReader reader, CharSequence content) { if (reader!=null) base = reader.getBase(); else base = null; data = content.toString(); /* if (reader==null) cookies = new String[0]; else cookies =reader.getCookies(); */ }; }
ServerResponse |