@Test @Ignore ("https: public void shouldBindAWsAddress() throws Exception { String location = "wse: Map<String, Object> addressOptions = Collections.emptyMap(); ResourceAddress wseAddress = addressFactory.newResourceAddress(location, addressOptions); IoHandler acceptHandler = new IoHandlerAdapter() {}; wsebAcceptor.bind(wseAddress, acceptHandler, null); Bindings<Bindings.Binding> bindings = wsebAcceptor.bindings(); Bindings.Binding binding = bindings.getBinding(wseAddress); Assert.assertNotNull(binding); Assert.assertSame(wseAddress, binding.bindAddress()); Assert.assertEquals(1, binding.referenceCount()); Assert.assertSame(acceptHandler, binding.handler()); System.out.println(wsebAcceptor.bindings()); }
Bindings<Bindings.Binding> bindings() { return super.bindings; }
WsebAcceptor extends AbstractBridgeAcceptor<WsebSession, Binding> { Bindings<Bindings.Binding> bindings() { return super.bindings; } }
WsebAcceptor extends AbstractBridgeAcceptor<WsebSession, Binding> { Bindings<Bindings.Binding> bindings() { return super.bindings; } WsebAcceptor(); }
WsebAcceptor extends AbstractBridgeAcceptor<WsebSession, Binding> { Bindings<Bindings.Binding> bindings() { return super.bindings; } WsebAcceptor(); @Resource(name = "configuration") void setConfiguration(Properties configuration); @Resource(name = "bridgeServiceFactory") void setBridgeServiceFactory(BridgeServiceFactory bridgeServiceFactory); @Resource(name = "resourceAddressFactory") void setResourceAddressFactory(ResourceAddressFactory resourceAddressFactory); @Resource(name = "ws.acceptor") void setWsAcceptor(WsAcceptor acceptor); @Resource(name = "schedulerProvider") void setSchedulerProvider(SchedulerProvider provider); @Override TransportMetadata getTransportMetadata(); }
WsebAcceptor extends AbstractBridgeAcceptor<WsebSession, Binding> { Bindings<Bindings.Binding> bindings() { return super.bindings; } WsebAcceptor(); @Resource(name = "configuration") void setConfiguration(Properties configuration); @Resource(name = "bridgeServiceFactory") void setBridgeServiceFactory(BridgeServiceFactory bridgeServiceFactory); @Resource(name = "resourceAddressFactory") void setResourceAddressFactory(ResourceAddressFactory resourceAddressFactory); @Resource(name = "ws.acceptor") void setWsAcceptor(WsAcceptor acceptor); @Resource(name = "schedulerProvider") void setSchedulerProvider(SchedulerProvider provider); @Override TransportMetadata getTransportMetadata(); static final String WSE_VERSION; static final AttributeKey CLIENT_BUFFER_KEY; static final AttributeKey CLIENT_PADDING_KEY; static final AttributeKey CLIENT_BLOCK_PADDING_KEY; static final AttributeKey BYTES_WRITTEN_ON_LAST_FLUSH_KEY; static final String EMULATED_SUFFIX; }