X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=server%2Fruntime%2Forg.argeo.server.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fserver%2FMarshallerServerSerializer.java;h=65ffebab5200747e68505860144882acbef43e0c;hb=c132d006584df1c992028e4a3e69c0a1293a0cc2;hp=cc33aaa4f00e1b727db943ef8b2c0eb12928797f;hpb=29926493718c12d1eff798d1a02700713ff65b04;p=lgpl%2Fargeo-commons.git diff --git a/server/runtime/org.argeo.server.core/src/main/java/org/argeo/server/MarshallerServerSerializer.java b/server/runtime/org.argeo.server.core/src/main/java/org/argeo/server/MarshallerServerSerializer.java index cc33aaa4f..65ffebab5 100644 --- a/server/runtime/org.argeo.server.core/src/main/java/org/argeo/server/MarshallerServerSerializer.java +++ b/server/runtime/org.argeo.server.core/src/main/java/org/argeo/server/MarshallerServerSerializer.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.IOException; @@ -14,6 +30,7 @@ public class MarshallerServerSerializer implements ServerSerializer, Serializer private Marshaller marshaller; private String contentTypeCharset = "UTF-8"; + @SuppressWarnings("restriction") public void serialize(Object obj, HttpServletRequest request, HttpServletResponse response) { response.setContentType("text/xml;charset=" + contentTypeCharset);