/* 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 GetExecutionResultType { String service; String version; String executionId; String baseUrl; String outputId; String mimeType; 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; } public String getOutputId() { return outputId; } public void setOutputId(String outputId) { this.outputId = outputId; } public String getMimeType() { return mimeType; } public void setMimeType(String mimeType) { this.mimeType = mimeType; } @Override public String toString() { return "GetExecutionResult [service=" + service + ", version=" + version + ", executionId=" + executionId + ", baseUrl=" + baseUrl + ", outputId=" + outputId + ", mimeType=" + mimeType + "]"; } @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 + ((mimeType == null) ? 0 : mimeType.hashCode()); result = prime * result + ((outputId == null) ? 0 : outputId.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; GetExecutionResultType other = (GetExecutionResultType) 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 (mimeType == null) { if (other.mimeType != null) return false; } else if (!mimeType.equals(other.mimeType)) return false; if (outputId == null) { if (other.outputId != null) return false; } else if (!outputId.equals(other.outputId)) 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; } }