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()); }
public void start(int port) throws Exception { resources.put(coreResource.getPath(), coreResource); CoapChannelManager channelManager = BasicCoapChannelManager.getInstance(); this.port = port; channelManager.createServerListener(this, port); }