private static void configureConnect(Connection conn, CommandLine cl) throws MissingOptionException, ParseException { if (!cl.hasOption("c")) throw new MissingOptionException( CLIUtils.rb.getString("missing-connect-opt")); String[] hostPort = StringUtils.split(cl.getOptionValue("c"), ':'); if (hostPort.length != 2) throw new ParseException(CLIUtils.rb.getString("invalid-connect-opt")); conn.setHostname(hostPort[0]); conn.setPort(Integer.parseInt(hostPort[1])); conn.setHttpProxy(cl.getOptionValue("proxy")); }
private static void configureConnect(Connection conn, CommandLine cl) throws MissingOptionException, ParseException { if (!cl.hasOption("c")) throw new MissingOptionException( CLIUtils.rb.getString("missing-connect-opt")); String[] hostPort = StringUtils.split(cl.getOptionValue("c"), ':'); if (hostPort.length != 2) throw new ParseException(CLIUtils.rb.getString("invalid-connect-opt")); conn.setHostname(hostPort[0]); conn.setPort(Integer.parseInt(hostPort[1])); conn.setHttpProxy(cl.getOptionValue("proxy")); }
private static void configureConnect(Connection conn, CommandLine cl) throws MissingOptionException, ParseException { if (!cl.hasOption("c")) throw new MissingOptionException( CLIUtils.rb.getString("missing-connect-opt")); String[] hostPort = StringUtils.split(cl.getOptionValue("c"), ':'); if (hostPort.length != 2) throw new ParseException(CLIUtils.rb.getString("invalid-connect-opt")); conn.setHostname(hostPort[0]); conn.setPort(Integer.parseInt(hostPort[1])); conn.setHttpProxy(cl.getOptionValue("proxy")); }
private static void configureConnect(Connection conn, CommandLine cl) throws MissingOptionException, ParseException { if (!cl.hasOption("c")) throw new MissingOptionException( CLIUtils.rb.getString("missing-connect-opt")); String[] hostPort = StringUtils.split(cl.getOptionValue("c"), ':'); if (hostPort.length != 2) throw new ParseException(CLIUtils.rb.getString("invalid-connect-opt")); conn.setHostname(hostPort[0]); conn.setPort(Integer.parseInt(hostPort[1])); conn.setHttpProxy(cl.getOptionValue("proxy")); }
public static void configureConnect(Connection conn, AAssociateRQ rq, CommandLine cl) throws ParseException { if (!cl.hasOption("c")) throw new MissingOptionException( rb.getString("missing-connect-opt")); String aeAtHostPort = cl.getOptionValue("c"); String[] aeHostPort = split(aeAtHostPort , '@', 0); if (aeHostPort[1] == null) throw new ParseException(rb.getString("invalid-connect-opt")); String[] hostPort = split(aeHostPort[1], ':', 0); if (hostPort[1] == null) throw new ParseException(rb.getString("invalid-connect-opt")); rq.setCalledAET(aeHostPort[0]); conn.setHostname(hostPort[0]); conn.setPort(Integer.parseInt(hostPort[1])); conn.setHttpProxy(cl.getOptionValue("proxy")); if (cl.hasOption("user")) rq.setUserIdentityRQ(cl.hasOption("user-pass") ? new UserIdentityRQ(cl.getOptionValue("user"), cl.getOptionValue("user-pass").toCharArray()) : new UserIdentityRQ(cl.getOptionValue("user"), cl.hasOption("user-rsp"))); }
public static void configureConnect(Connection conn, AAssociateRQ rq, CommandLine cl) throws ParseException { if (!cl.hasOption("c")) throw new MissingOptionException( rb.getString("missing-connect-opt")); String aeAtHostPort = cl.getOptionValue("c"); String[] aeHostPort = split(aeAtHostPort , '@', 0); if (aeHostPort[1] == null) throw new ParseException(rb.getString("invalid-connect-opt")); String[] hostPort = split(aeHostPort[1], ':', 0); if (hostPort[1] == null) throw new ParseException(rb.getString("invalid-connect-opt")); rq.setCalledAET(aeHostPort[0]); conn.setHostname(hostPort[0]); conn.setPort(Integer.parseInt(hostPort[1])); conn.setHttpProxy(cl.getOptionValue("proxy")); if (cl.hasOption("user")) rq.setUserIdentityRQ(cl.hasOption("user-pass") ? new UserIdentityRQ(cl.getOptionValue("user"), cl.getOptionValue("user-pass").toCharArray()) : new UserIdentityRQ(cl.getOptionValue("user"), cl.hasOption("user-rsp"))); }
private static void configureConnect(HL7Pix hl7pix, CommandLine cl) throws MissingOptionException, ParseException { String appAtHostPort = cl.getOptionValue("c"); if (appAtHostPort == null) throw new MissingOptionException( CLIUtils.rb.getString("missing-connect-opt")); String[] appHostPort = HL7Segment.split(appAtHostPort , '@'); if (appHostPort.length != 2) throw new ParseException(CLIUtils.rb.getString("invalid-connect-opt")); String[] hostPort = HL7Segment.split(appHostPort[1], ':'); if (hostPort.length != 2) throw new ParseException(CLIUtils.rb.getString("invalid-connect-opt")); hl7pix.setReceivingApplication(appHostPort[0]); hl7pix.remote.setHostname(hostPort[0]); hl7pix.remote.setPort(Integer.parseInt(hostPort[1])); hl7pix.remote.setHttpProxy(cl.getOptionValue("proxy")); }
private static void configureConnect(HL7Pix hl7pix, CommandLine cl) throws MissingOptionException, ParseException { String appAtHostPort = cl.getOptionValue("c"); if (appAtHostPort == null) throw new MissingOptionException( CLIUtils.rb.getString("missing-connect-opt")); String[] appHostPort = HL7Segment.split(appAtHostPort , '@'); if (appHostPort.length != 2) throw new ParseException(CLIUtils.rb.getString("invalid-connect-opt")); String[] hostPort = HL7Segment.split(appHostPort[1], ':'); if (hostPort.length != 2) throw new ParseException(CLIUtils.rb.getString("invalid-connect-opt")); hl7pix.setReceivingApplication(appHostPort[0]); hl7pix.remote.setHostname(hostPort[0]); hl7pix.remote.setPort(Integer.parseInt(hostPort[1])); hl7pix.remote.setHttpProxy(cl.getOptionValue("proxy")); }
conn.setHttpProxy(LdapUtils.stringValue(attrs.get("dcmHTTPProxy"), null)); conn.setBlacklist(LdapUtils.stringArray(attrs.get("dcmBlacklistedHostname"))); conn.setBacklog(LdapUtils.intValue(attrs.get("dcmTCPBacklog"), Connection.DEF_BACKLOG));
conn.setHttpProxy(LdapUtils.stringValue(attrs.get("dcmHTTPProxy"), null)); conn.setBlacklist(LdapUtils.stringArray(attrs.get("dcmBlacklistedHostname"))); conn.setBacklog(LdapUtils.intValue(attrs.get("dcmTCPBacklog"), Connection.DEF_BACKLOG));
setClientBindAddress(from.clientBindAddress); setProtocol(from.protocol); setHttpProxy(from.httpProxy); setBacklog(from.backlog); setConnectTimeout(from.connectTimeout);
setClientBindAddress(from.clientBindAddress); setProtocol(from.protocol); setHttpProxy(from.httpProxy); setBacklog(from.backlog); setConnectTimeout(from.connectTimeout);
break; case "dcmHTTPProxy": conn.setHttpProxy(reader.stringValue()); break; case "dcmBlacklistedHostname":
break; case "dcmHTTPProxy": conn.setHttpProxy(reader.stringValue()); break; case "dcmBlacklistedHostname":