Created
February 13, 2012 16:59
-
-
Save patrickgombert/1818291 to your computer and use it in GitHub Desktop.
Example Client
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
package Implementer.example; | |
import Server.src.Client; | |
import Server.src.Marketer; | |
import Server.src.Memo; | |
public class AppClient extends Client { | |
private Memo inMemo; | |
private Memo outMemo; | |
public void execute(Marketer marketer, Memo _inMemo) { | |
inMemo = _inMemo; | |
if(inMemo.getField("Verb").equals("GET")) { | |
outMemo = new Memo(200, "HTML", "<html>Hello World!</html>"); | |
} else { | |
outMemo = new Memo(501, "HTML", "<html>I don't know how to do that!</html>"); | |
} | |
contactMarketer(marketer, outMemo); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment