public SocketFactory getSocketFactory() { return context.getSocketFactory(); }
public SocketFactory getSocketFactory() { return context.getSocketFactory(); }
protected AcceptorThread createAcceptThread(int port) throws SocketException, IOException { SocketFactory ss = this.hapiContext.getSocketFactory(); return new AcceptorThread(port, tls, getExecutorService(), queue, ss); }
protected AcceptorThread createAcceptThread(int port) throws SocketException, IOException { SocketFactory ss = this.hapiContext.getSocketFactory(); return new AcceptorThread(port, tls, getExecutorService(), queue, ss); }
/** * Prepare server by initializing the server socket * * @see ca.uhn.hl7v2.app.HL7Service#afterStartup() */ @Override protected void afterStartup() { try { super.afterStartup(); log.info("Starting SimpleServer running on port {}", port); SocketFactory ss = this.hapiContext.getSocketFactory(); acceptor = new AcceptorThread(port, tls, getExecutorService(), queue, ss); acceptor.start(); } catch (Exception e) { log.error("Failed starting SimpleServer on port", port); throw new RuntimeException(e); } }
/** * Prepare server by initializing the server socket * * @see ca.uhn.hl7v2.app.HL7Service#afterStartup() */ @Override protected void afterStartup() { try { super.afterStartup(); log.info("Starting SimpleServer running on port {}", port); SocketFactory ss = this.hapiContext.getSocketFactory(); acceptor = new AcceptorThread(port, tls, getExecutorService(), queue, ss); acceptor.start(); } catch (Exception e) { log.error("Failed starting SimpleServer on port", port); throw new RuntimeException(e); } }
/** * @since 2.2 */ public Connection attachLazily(String host, int outboundPort, int inboundPort, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, outboundPort, inboundPort, getHapiContext() .getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext().getSocketFactory(), true)); }
/** * @since 2.2 */ public Connection attachLazily(String host, int outboundPort, int inboundPort, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, outboundPort, inboundPort, getHapiContext() .getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext().getSocketFactory(), true)); }
/** * @since 2.0 */ public Connection attach(String host, int outboundPort, int inboundPort, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, outboundPort, inboundPort, getHapiContext() .getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext().getSocketFactory(), false)); }
/** * @since 2.0 */ public Connection attach(String host, int outboundPort, int inboundPort, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, outboundPort, inboundPort, getHapiContext() .getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext().getSocketFactory(), false)); }
/** * Returns a Connection to the given address, opening this Connection if necessary. The given * Parser will only be used if a new Connection is opened, so there is no guarantee that the * Connection returned will be using the Parser you provide. If you need explicit access to the * Parser the Connection is using, call <code>Connection.getParser()</code>. * * @since 2.2 */ public Connection attachLazily(String host, int port, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, port, 0, getHapiContext().getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext() .getSocketFactory(), true)); }
/** * Returns a Connection to the given address, opening this Connection if necessary. The given * Parser will only be used if a new Connection is opened, so there is no guarantee that the * Connection returned will be using the Parser you provide. If you need explicit access to the * Parser the Connection is using, call <code>Connection.getParser()</code>. * * @since 2.1 */ public Connection attach(String host, int port, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, port, 0, getHapiContext().getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext() .getSocketFactory(), false)); }
/** * Returns a Connection to the given address, opening this Connection if necessary. The given * Parser will only be used if a new Connection is opened, so there is no guarantee that the * Connection returned will be using the Parser you provide. If you need explicit access to the * Parser the Connection is using, call <code>Connection.getParser()</code>. * * @since 2.2 */ public Connection attachLazily(String host, int port, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, port, 0, getHapiContext().getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext() .getSocketFactory(), true)); }
/** * Returns a Connection to the given address, opening this Connection if necessary. The given * Parser will only be used if a new Connection is opened, so there is no guarantee that the * Connection returned will be using the Parser you provide. If you need explicit access to the * Parser the Connection is using, call <code>Connection.getParser()</code>. * * @since 2.1 */ public Connection attach(String host, int port, boolean tls) throws HL7Exception { return attach(new ConnectionData(host, port, 0, getHapiContext().getGenericParser(), getHapiContext().getLowerLayerProtocol(), tls, getHapiContext() .getSocketFactory(), false)); }