awips2/edexOsgi/build.edex/opt/esb/js/ObsIcaoRequest.js
root 8e80217e59 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: a02aeb236c [formerly 9f19e3f712] [formerly 06a8b51d6d [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 3360eb6c5f
2012-01-06 08:55:05 -06:00

46 lines
984 B
JavaScript

function ObsIcaoRequest(){
this.plugin = "obsIcao";
this.obsicao = new ObsIcaoQuery();
this.icao = null;
}
function _addParameter(name,value,operand){
this.icao = value;
}
function _execute()
{
var station = null;
var icaos = new Array();
this.obsicao.setIcao(this.icao);
station = this.obsicao.execute();
if(station!=null){
var response = new Array();
response[0] = station;
var makeResponse = new MakeResponseXml(station);
response[0] = makeResponse.execute();
return response;
} else {
var response = new MakeResponseNull("Query returned 0 results.",
this.obsicao);
return response.execute();
}
}
function _makeXmlResponse()
{
var xmlResults = new Array();
var response = new Array();
return response;
}
ObsIcaoRequest.prototype.execute = _execute;
ObsIcaoRequest.prototype.makeXmlResponse = _makeXmlResponse;
ObsIcaoRequest.prototype.addParameter = _addParameter;