public RemotingChannel buildRemotingChannel(Class<? extends RemotingChannel> channelClass, String id, ServerApp serverApp, int maxConcurrentRequest, Transport transport, MessagingCodec<AMF0Message> codec) { String uri = (serverApp.getSecure() ? "https" : "http") + "://" + serverApp.getServerName() + ":" + serverApp.getServerPort() + serverApp.getContextRoot() + graniteUrlMapping; try { return buildRemotingChannel(channelClass, id, new URI(uri), maxConcurrentRequest, transport, codec); } catch (URISyntaxException e) { throw new RuntimeException("Bad uri: " + uri, e); } }
public RemotingChannel buildRemotingChannel(Class<? extends RemotingChannel> channelClass, String id, ServerApp serverApp, int maxConcurrentRequest, Transport transport, MessagingCodec<AMF0Message> codec) { String uri = (serverApp.getSecure() ? "https" : "http") + "://" + serverApp.getServerName() + ":" + serverApp.getServerPort() + serverApp.getContextRoot() + graniteUrlMapping; try { return buildRemotingChannel(channelClass, id, new URI(uri), maxConcurrentRequest, transport, codec); } catch (URISyntaxException e) { throw new RuntimeException("Bad uri: " + uri, e); } }