// ** This class was generated with DemFGen (vers:11/09/2009) package edu.neu.ccs.demeterf.http.classes; import edu.neu.ccs.demeterf.lib.*; import java.net.Socket; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.io.IOException; import java.io.BufferedReader; import java.io.PrintWriter; import java.io.InputStreamReader; import java.io.InputStream; /** Representation of BaseURL */ public class BaseURL extends URL{ protected final URL rest; /** Construct a(n) BaseURL Instance */ public BaseURL(URL rest){ this.rest = rest; } /** Is the given object Equal to this BaseURL? */ public boolean equals(Object o){ if(!(o instanceof BaseURL))return false; if(o == this)return true; BaseURL oo = (BaseURL)o; return (((Object)rest).equals(oo.rest)); } /** Parse an instance of BaseURL from the given String */ public static BaseURL parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_BaseURL(); } /** Parse an instance of BaseURL from the given Stream */ public static BaseURL parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_BaseURL(); } /** Parse an instance of BaseURL from the given Reader */ public static BaseURL parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_BaseURL(); } /** Field Class for BaseURL.rest */ public static class rest extends edu.neu.ccs.demeterf.Fields.any{} /** Return the URLs Arguments */ public Map urlArgs(){ return rest.urlArgs(); } /** Remove the URL Arguments */ public String trimArgs(){ return "/"+rest.trimArgs(); } /** DGP method from Class PrintHeapToString */ public String toString(){ return edu.neu.ccs.demeterf.http.classes.PrintHeapToString.PrintHeapToStringM(this); } /** Getter for field BaseURL.rest */ public URL getRest(){ return rest; } }