Created
May 17, 2012 14:37
-
-
Save jtwaleson/2719331 to your computer and use it in GitHub Desktop.
RequestHandlers1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelloWorldRequestHandler extends RequestHandler { | |
@Override | |
public void processRequest(IMxRuntimeRequest request, IMxRuntimeResponse response, String path) throws Exception | |
{ | |
String greeting = "Hello world!"; | |
OutputStream outputStream = response.getOutputStream(); | |
IOUtils.write(greeting, outputStream); | |
IOUtils.closeQuietly(outputStream); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment