/** * Creates an instance of the Response */ public Response() { this.attributeManager = new InVMAttributeManager(); }
/** * Gets an arbitrary attribute value from the context * * @param name * @return */ public Object getAttribute(String name) { return this.attributeManager.getAttribute(name); }
public void removeAttribute(String name) { this.attributes.removeAttribute(name); } //-------------------------------------------------------------------------------------------------------
public void setSenderUri(String senderUri) { this.attributes.setAttribute("sender-uri", senderUri); } //------------------------------------------------------------------------------------------------------------
/** * Gets all the names that identify values of attributes in the context * * @return */ public String[] getNames() { return this.attributeManager.getNames(); }
/** * Gets all the values of attributes in the context * * @return */ public Object[] getValues() { return this.attributeManager.getValues(); }
/** * Sets the Latitude of the address associated with this context * * @param latitude */ public void setLatitude(String latitude) { this.attributeManager.setAttribute("latitude", latitude); }
/** * Gets all the names that identify values of attributes in the service request * * @return */ public String[] getNames() { return this.attributeManager.getNames(); }
/** * Get the details associated with a place * * @return */ public Place getPlaceDetails() { return (Place)this.attributeManager.getAttribute("placeDetails"); }
/** * Sets the Longitude of the address associated with this context * * @param longitude */ public void setLongitude(String longitude) { this.attributeManager.setAttribute("longitude", longitude); }
/** * Removes an attribute * * @param name */ public void removeAttribute(String name) { this.attributeManager.removeAttribute(name); }
/** * */ public LocationContext() { this.attributeManager = new InVMAttributeManager(); }
/** * Gets all the names that identify values of attributes in the service response * * @return */ public String[] getNames() { return this.attributeManager.getNames(); }
/** * Gets a related "map" of string data representing the contextual data associated * with this particular service request * * @param name * @return */ public Map<String,String> getMapAttribute(String name) { return (Map<String,String>)this.attributeManager.getAttribute(name); }
/** * Get the type of places to be searched for * * @param placeTypes */ public void setPlaceTypes(List<String> placeTypes) { this.attributeManager.setAttribute("placeTypes", placeTypes); }
/** * Removes an attribute associated with the service response * * @param name */ public void removeAttribute(String name) { this.attributeManager.removeAttribute(name); }
public BusMessage() { this.attributes = new InVMAttributeManager(); }
/** * Set the type of places to search for * * @return */ public List<String> getPlaceTypes() { return (List<String>)this.attributeManager.getAttribute("placeTypes"); }
/** * Sets the list of places near the address associated with the context * * @param places */ public void setNearbyPlaces(List<Place> places) { this.attributeManager.setAttribute("places", places); }
public void removeAttribute(String name) { this.mgr.removeAttribute(name); } //--------------------------------------------------------------------------------------------------------------