/** * Convert this encoded string back to a Java Object. * @param string The string to convert. * @return The java object. */ public Object stringToObject(String string) { Object obj = BaseTransport.convertStringToObject(string); return obj; } /**
/** * Constructor. */ public void init(ApplicationProxy appProxy, String strCommand) { super.init(appProxy, strCommand); } /**
/** * Add this method param to the param list. * @param strParam The param name. * @param strValue The param value. */ public void addParam(String strParam, Map<String,Object> properties) { this.addParam(strParam, (Object)properties); } /**
/** * Send the request using POST. Return the input stream with the * response if the request succeeds. * @param args the arguments to send to the servlet * @exception IOException if error sending request * @return the response from the servlet to this message */ public InputStream sendMessage(Properties args) throws IOException { return sendMessage(args, POST); }
/** * Convert this java object to a String. * @param obj The java object to convert. * @return The object represented as a string. */ public String objectToString(Object obj) { String string = BaseTransport.convertObjectToString(obj); return string; } /**
/** * Add this method param to the param list. * @param strParam The param name. * @param strValue The param value. */ public void addParam(String strParam, Object obj) { String strValue = this.objectToString(obj); this.addParam(strParam, strValue); } /**
/** * Convert this encoded string back to a Java Object. * @param string The string to convert. * @return The java object. */ public Object stringToObject(String string) { string = PropertiesTransport.decode(string); Object obj = super.stringToObject(string); return obj; } /**
/** * Constructor. */ public void init(ApplicationProxy appProxy, String strCommand) { super.init(appProxy, strCommand); } /**
/** * Convert the return value to an object (override if this doesn't just to string to object). * @param ojb The returned object to convert. * @return The converted object. */ public Object convertReturnObject(Object obj) { return this.stringToObject((String)obj); } /**
/** * Convert this java object to a String. * @param obj The java object to convert. * @return The object represented as a string. */ public String objectToString(Object obj) { String string = super.objectToString(obj); // string = PropertiesTransport.encode(string); return string; } /**
/** * Convert this encoded string back to a Java Object. * @param string The string to convert. * @return The java object. */ public Object stringToObject(String string) { // string = PropertiesTransport.decode(string); Object obj = super.stringToObject(string); return obj; } /**
/** * Constructor. */ public EncodedTransport(ApplicationProxy appProxy, String strCommand) { this(); this.init(appProxy, strCommand); } /**
/** * Create the proxy transport. * @param strCommand The command. * @return The transport. */ public BaseTransport createProxyTransport(String strCommand) { return new EncodedTransport(this, strCommand); } //------------------------------Remote Implementation---------------------------------
/** * Constructor. */ public BaseTransport(ApplicationProxy appProxy, String strCommand) { this(); this.init(appProxy, strCommand); } /**
/** * Add this method param to the param list. * @param strParam The param name. * @param strValue The param value. */ public void addParam(String strParam, boolean bValue) { this.addParam(strParam, bValue ? Constants.TRUE : Constants.FALSE); } /**
/** * Constructor. */ public Base64Transport(ApplicationProxy appProxy, String strCommand) { this(); this.init(appProxy, strCommand); } /**
/** * Convert this encoded string back to a Java Object. * @param string The string to convert. * @return The java object. */ public Object stringToObject(String string) { string = Base64.decode(string); Object obj = super.stringToObject(string); return obj; } /**
/** * Constructor. */ public void init(ApplicationProxy appProxy, String strCommand) { super.init(appProxy, strCommand); } /**
/** * Add this method param to the param list. * @param strParam The param name. * @param strValue The param value. */ public void addParam(String strParam, int iValue) { this.addParam(strParam, Integer.toString(iValue)); } /**
/** * Constructor. */ public void init(ApplicationProxy appProxy, String strCommand) { super.init(appProxy, strCommand); } /**