Пример #1
0
 private void addResource(Resource resource) {
   resource.registerServerListener(this);
   resources.put(resource.getPath(), resource);
   coreResource.registerResource(resource);
 }
 @Test
 public void testGetSeaCloudsInformation() throws Exception {
   assertNotNull(coreResource.getSeaCloudsInformation().getEntity());
 }
Пример #3
0
 public void start(int port) throws Exception {
   resources.put(coreResource.getPath(), coreResource);
   CoapChannelManager channelManager = BasicCoapChannelManager.getInstance();
   this.port = port;
   channelManager.createServerListener(this, port);
 }