01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.geoserver.ows;
06:
07: import java.io.IOException;
08: import java.io.InputStream;
09:
10: public class HelloWorldWithInput extends HelloWorld {
11: public Message hello(InputStream input) throws IOException {
12: byte[] buf = new byte[255];
13: int n = input.read(buf);
14:
15: return new Message(new String(buf, 0, n));
16: }
17: }
|