public String getName() { if (processor==null){ return "Polling properties"; } else{ return "Polling properties for " + processor.getName(); } }
/** * Use the endpoint data to set the description field */ public void getDescriptionText() throws ProcessorCreationException { try { Map info = (Map) Soap.callWebService(endpoint.toString(), "getAnalysisType"); // Get the description element from the map String description = (String) info.get("description"); if (description != null) { setDescription(description); } } catch (ServiceException se) { throw new ProcessorCreationException(getName() + ": Unable to create a new call to connect to\n soaplab, error was : " + se.getMessage()); } catch (RemoteException re) { throw new ProcessorCreationException(getName() + ": Unable to call the get description method\n for XScufl processor " + getName() + "\nendpoint : " + endpoint.toString() + "\n Remote exception message " + re.getMessage()); } }
throw new ProcessorCreationException(getName() + ": Unable to create a new call to connect\n to soaplab, error was : " + se.getMessage()); } catch (RemoteException re) { throw new ProcessorCreationException(getName() + ": Unable to call the get spec method for\n endpoint : " + endpoint.toString() + "\n Remote exception message " + re.getMessage()); } catch (NullPointerException npe) {
/** * Set the endpoint for this soaplab processor */ void setEndpoint(String specifier) throws MalformedURLException, ProcessorCreationException { URL new_endpoint = new URL(specifier); if (endpoint != null) { if (endpoint.equals(new_endpoint) == false) { fireModelEvent(new ScuflModelEvent(this, "Service endpoint changed to '" + specifier + "'")); } else { // Do nothing if the endpoint was the same as before return; } } else { fireModelEvent(new ScuflModelEvent(this, "Service endpoint set to '" + specifier + "'")); } endpoint = new_endpoint; try { if (this.isOffline() == false) { generatePorts(); getDescriptionText(); } } catch (PortCreationException pce) { throw new ProcessorCreationException(getName() + ": Exception when trying to create ports\n from Soaplab endpoint : " + pce.getMessage()); } catch (DuplicatePortNameException dpne) { throw new ProcessorCreationException(getName() + ": Exception when trying to create ports\n from Soaplab endpoint : " + dpne.getMessage()); } }