/* Copyright (c) 2001 - 2013 OpenPlans - www.openplans.org. All rights reserved. * This code is licensed under the GPL 2.0 license, available at the root * application directory. */ package org.geoserver.wps; /** * The execution status request * * @author Andrea Aime - GeoSolutions */ public class GetExecutionStatusType { String service; String version; String executionId; String baseUrl; public String getService() { return service; } public void setService(String service) { this.service = service; } public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } public String getExecutionId() { return executionId; } public void setExecutionId(String executionId) { this.executionId = executionId; } public String getBaseUrl() { return baseUrl; } public void setBaseUrl(String baseUrl) { this.baseUrl = baseUrl; } @Override public String toString() { return "StatusType [service=" + service + ", version=" + version + ", executionId=" + executionId + "]"; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((baseUrl == null) ? 0 : baseUrl.hashCode()); result = prime * result + ((executionId == null) ? 0 : executionId.hashCode()); result = prime * result + ((service == null) ? 0 : service.hashCode()); result = prime * result + ((version == null) ? 0 : version.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; GetExecutionStatusType other = (GetExecutionStatusType) obj; if (baseUrl == null) { if (other.baseUrl != null) return false; } else if (!baseUrl.equals(other.baseUrl)) return false; if (executionId == null) { if (other.executionId != null) return false; } else if (!executionId.equals(other.executionId)) return false; if (service == null) { if (other.service != null) return false; } else if (!service.equals(other.service)) return false; if (version == null) { if (other.version != null) return false; } else if (!version.equals(other.version)) return false; return true; } }