1 /* zxidwspaxisdemo.java - Demonstration web service, TAS3 enabled using the zxidwspaxismod 2 * Copyright (c) 2009 Symlabs (symlabs@symlabs.com), All Rights Reserved. 3 * Author: Sampo Kellomaki (sampo@iki.fi) 4 * This is confidential unpublished proprietary source code of the author. 5 * NO WARRANTY, not even implied warranties. Contains trade secrets. 6 * Distribution prohibited unless authorized in writing. 7 * Licensed under Apache License 2.0, see file COPYING. 8 * $Id: zxidappdemo.java,v 1.3 2009-11-20 20:27:13 sampo Exp $ 9 * 16.10.2009, created --Sampo 10 * 11 * See also: zxid-java.pd, zxidappdemo.java for client side 12 * 13 * Discovery registration: 14 * ./zxcot -e http://sp.tas3.pt:8080/zxidservlet/wspdemo 'TAS3 WSP Demo' http://sp.tas3.pt:8080/zxidservlet/wspdemo?o=B urn:x-foobar | ./zxcot -d -b /var/zxid/idpdimd 15 * touch /var/zxid/idpuid/.all/.bs/urn_x-foobar,l9O3xlWWi9kLZm-yQYRytpf0lqw 16 */ 17 18 import zxidjava.*; // Pull in the zxidjni.az() API 19 import java.io.*; 20 21 public class zxidwspaxisdemo extends HttpServlet { demodemo(String in)22 public String demodemo(String in) { 23 System.err.print("demodemo wsp in("+in+").\n"); 24 return "DEMO-"+in+"-DEMO"; 25 } 26 } 27 28 /* EOF */ 29