PortInfo
HandlerResolver
This interface is never implemented by an application, only by a JAX-WS implementation. @since JAX-WS 2.0
420421422423424425426427
private PortInfo getPortInfo(EndpointMetaData epMetaData) { QName serviceName = epMetaData.getServiceMetaData().getServiceName(); QName portName = epMetaData.getPortName(); String bindingID = epMetaData.getBindingId(); PortInfo portInfo = new PortInfoImpl(serviceName, portName, bindingID); return portInfo; }
137138139140141142143144145146147
*/ private void initBindingHandlerChain(boolean clearExistingHandlers) { BindingExt binding = (BindingExt)getBindingProvider().getBinding(); PortInfo portInfo = epMetaData.getPortInfo(); if (handlerResolver != null) { boolean jbossHandlerResolver = handlerResolver instanceof HandlerResolverImpl;
6869707172737475
public PortInfo getPortInfo() { QName serviceName = getServiceMetaData().getServiceName(); QName portName = getPortName(); String bindingID = getBindingId(); PortInfo portInfo = new PortInfoImpl(serviceName, portName, bindingID); return portInfo; }
99100101102103104105106107108109110111112
* @return True if they match, and false if they do not or * if the object passed in is not a PortInfo. */ public boolean equals(Object obj) { if (obj instanceof PortInfo) { PortInfo info = (PortInfo) obj; if (bindingId.toString().equals(info.getBindingID()) && portName.equals(info.getPortName()) && serviceName.equals(info.getServiceName())) { return true; } } return false; }
243244245246247248249250251252253
service.setHandlerResolver(resolver); CalculatorPortType cal = (CalculatorPortType)service.getPort(PORT_1, CalculatorPortType.class); assertNotNull(cal); PortInfo info = resolver.getPortInfo(); assertNotNull(info); assertEquals(SERVICE_1, info.getServiceName()); assertEquals(PORT_1, info.getPortName()); assertEquals(SOAPBinding.SOAP12HTTP_BINDING, info.getBindingID()); }
234235236237238239240241242243244
237238239240241242243244245246247
260261262263264265266267268269270
service.setHandlerResolver(resolver); CalculatorPortType cal = service.getPort(PORT_1, CalculatorPortType.class); assertNotNull(cal); PortInfo info = resolver.getPortInfo(); assertNotNull(info); assertEquals(SERVICE_1, info.getServiceName()); assertEquals(PORT_1, info.getPortName()); assertEquals(SOAPBinding.SOAP12HTTP_BINDING, info.getBindingID()); }
111112113114115116117118119120121
*/ private void initBindingHandlerChain(boolean clearExistingHandlers) { BindingExt binding = (BindingExt)getBindingProvider().getBinding(); PortInfo portInfo = getPortInfo(epMetaData); if (handlerResolver != null) { boolean jbossHandlerResolver = handlerResolver instanceof HandlerResolverImpl;