- Common ways to obtain EndpointImpl
private void myMethod () {EndpointImpl e =
Object implementor;(EndpointImpl) Endpoint.create(implementor)
- Smart code suggestions by Codota
}
public void publish() { publish(getAddress()); }
public void publish() { publish(getAddress()); }
private void doHandleSoapMessage(SoapMessage message) throws Fault { final Object callbackEndpoint = message.getContextualProperty( RequestCallbackFeature.CALLBACK_ENDPOINT_PROPERTY_NAME); if (callbackEndpoint != null) { final String callbackEndpointAddress; if (callbackEndpoint instanceof String) { callbackEndpointAddress = (String) callbackEndpoint; } else if (callbackEndpoint instanceof EndpointImpl) { callbackEndpointAddress = ((EndpointImpl) callbackEndpoint).getAddress(); } else { throw new IllegalArgumentException("Unsupported type of endpoint. "); } doHandleRequestSoapMessage(message, callbackEndpointAddress); return; } final CallContext ctx = (CallContext) message.getContextualProperty( RequestCallbackFeature.CALLCONTEXT_PROPERTY_NAME); if (ctx != null) { doHandleCallbackSoapMessage(message, ctx); return; } }
@Override public void afterPropertiesSet() throws Exception { final JmsUriConfigurator cfg = JmsUriConfigurator.create(endpoint); if (cfg == null) { return; } final EndpointImpl ei = (EndpointImpl) endpoint; CallContext.setupEndpoint(ei); cfg.setPresetJmsAddress(ei.getAddress()); ei.setAddress(cfg.createJmsAddress()); if (publishEndpoint) { ei.publish(); } } }