@Override public void configure(final Message capabilitiesMessage) { configured = true; if (!isSSESupported()) { hosed = true; unsupportedReason = UNSUPPORTED_MESSAGE_NO_SERVER_SUPPORT; logger.warn("this browser does not support SSE"); return; } this.sseEntryPoint = URL.encode(clientMessageBus.getApplicationLocation(clientMessageBus.getInServiceEntryPoint())) + "?&sse=1&clientId=" + URL.encodePathSegment(clientMessageBus.getClientId()); }
URL.encode(messageBus.getApplicationLocation(serviceEntryPoint)) + "?z=" + getNextRequestNumber() + "&clientId=" + URL.encodePathSegment(messageBus.getClientId()) + extraParmsString.toString() );
@Override public String getApplicationLocation(String serviceEntryPoint) { Configuration configuration = GWT.create(Configuration.class); if (configuration instanceof Configuration.NotSpecified) { throw new IllegalArgumentException("you need to implement Configuration in order to point to the server location"); } LOG.info("url end point " + configuration.getRemoteLocation()); return super.getApplicationLocation(serviceEntryPoint); } }
@Override public String getApplicationLocation(String serviceEntryPoint) { Configuration configuration = GWT.create(Configuration.class); if (configuration instanceof Configuration.NotSpecified) { throw new IllegalArgumentException("you need to implement Configuration in order to point to the server location"); } LOG.info("url end point " + configuration.getRemoteLocation()); return super.getApplicationLocation(serviceEntryPoint); } }
@Override public void configure(final Message capabilitiesMessage) { configured = true; if (!isSSESupported()) { hosed = true; unsupportedReason = UNSUPPORTED_MESSAGE_NO_SERVER_SUPPORT; logger.warn("this browser does not support SSE"); return; } this.sseEntryPoint = URL.encode(clientMessageBus.getApplicationLocation(clientMessageBus.getInServiceEntryPoint())) + "?&sse=1&clientId=" + URL.encodePathSegment(clientMessageBus.getClientId()); }
URL.encode(messageBus.getApplicationLocation(serviceEntryPoint)) + "?z=" + getNextRequestNumber() + "&clientId=" + URL.encodePathSegment(messageBus.getClientId()) + extraParmsString.toString() );