X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=server%2Fruntime%2Forg.argeo.server.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fserver%2FServerAnswer.java;h=de15add0d49fda8c760b7817bb84ef0a568278ac;hb=c132d006584df1c992028e4a3e69c0a1293a0cc2;hp=163cdf87fc402a4c55a2de0192fb773baa41bde0;hpb=cdfd09387221a87b3a36f54fd3d5e8a6f4279baf;p=lgpl%2Fargeo-commons.git diff --git a/server/runtime/org.argeo.server.core/src/main/java/org/argeo/server/ServerAnswer.java b/server/runtime/org.argeo.server.core/src/main/java/org/argeo/server/ServerAnswer.java index 163cdf87f..de15add0d 100644 --- a/server/runtime/org.argeo.server.core/src/main/java/org/argeo/server/ServerAnswer.java +++ b/server/runtime/org.argeo.server.core/src/main/java/org/argeo/server/ServerAnswer.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2010 Mathieu Baudier + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.argeo.server; import java.io.PrintWriter; @@ -14,6 +30,8 @@ public class ServerAnswer { private String status = OK; private String message = ""; + // TODO: add an exception field + /** Canonical constructor */ public ServerAnswer(String status, String message) { setStatus(status);