154155156157158159160
Presence presence = document.addNewPresence(); presence.setEntity(getUri()); Tuple tuple = document.getPresence().addNewTuple(); tuple.setId("123"); tuple.addNewStatus().setBasic(Basic.CLOSED); return new State(PresenceEventPackage.PIDF, document); }
203204205206207208209210
cursor.insertNamespace(name, namespaces.get(name)); } cursor.pop(); XmlObject o = cursor.getObject(); cursor.dispose(); return new State(contentType, o); } }
55565758596061
} } else reg.setState(org.cipango.kaleo.location.event.RegistrationDocument.Registration.State.INIT); _state = new State(RegEventPackage.REGINFO, _content); }
136137138139140141142
reginfo.setVersion(BigInteger.ZERO); reginfo.setState(org.cipango.kaleo.location.event.ReginfoDocument.Reginfo.State.FULL); Registration reg = reginfo.addNewRegistration(); reg.setAor(getUri()); reg.setId("123"); return new State(RegEventPackage.REGINFO, document); }
57585960616263
watcher.setEvent(getEvent(subscription.getReason())); } } // TODO set watchers _state = new State(WatcherInfoEventPackage.WATCHERINFO, _content); }
165166167168169170171
watcherinfo.setVersion(BigInteger.ZERO); WatcherList list = watcherinfo.addNewWatcherList(); list.setResource(getUri()); list.setPackage(PresenceEventPackage.NAME); return new State(WatcherInfoEventPackage.WATCHERINFO, document); }