Examples of Hl7OverHttpRequestEncoder


Examples of ca.uhn.hl7v2.hoh.encoder.Hl7OverHttpRequestEncoder

  }

  private IReceivable<String> doSendAndReceiveInternal(ISendable<?> theMessageToSend, Socket socket) throws IOException, DecodeException, SignatureVerificationException, EncodeException {
    ourLog.trace("Entering doSendAndReceiveInternal()");
   
    Hl7OverHttpRequestEncoder enc = new Hl7OverHttpRequestEncoder();
    enc.setPath(myPath);
    enc.setHost(myHost);
    enc.setPort(myPort);
    enc.setCharset(myCharset);
    if (myAuthorizationCallback != null) {
      enc.setUsername(myAuthorizationCallback.provideUsername(myPath));
      enc.setPassword(myAuthorizationCallback.providePassword(myPath));
    }
    enc.setSigner(mySigner);
    enc.setDataProvider(theMessageToSend);

    ourLog.debug("Writing message to OutputStream");
    enc.encodeToOutputStream(myOutputStream);
    myOutputStream.flush();

    ourLog.debug("Reading response from OutputStream");

    RawReceivable response = null;
View Full Code Here

Examples of ca.uhn.hl7v2.hoh.encoder.Hl7OverHttpRequestEncoder

   */
  public void writeMessage(String theRawMessage) throws LLPException, IOException {

    AbstractHl7OverHttpEncoder e;
    if (myProtocol.getRole() == ServerRoleEnum.CLIENT) {
      e = new Hl7OverHttpRequestEncoder();
      if (myProtocol.getAuthorizationClientCallback() != null) {
        e.setUsername(myProtocol.getAuthorizationClientCallback().provideUsername(myProtocol.getUriPath()));
        e.setPassword(myProtocol.getAuthorizationClientCallback().providePassword(myProtocol.getUriPath()));
      }
    } else {
View Full Code Here

Examples of ca.uhn.hl7v2.hoh.encoder.Hl7OverHttpRequestEncoder

    myInputStream = new BufferedInputStream(socket.getInputStream());
    return socket;
  }

  private IReceivable<String> doSendAndReceiveInternal(ISendable<?> theMessageToSend, Socket socket) throws IOException, DecodeException, SignatureVerificationException, EncodeException {
    Hl7OverHttpRequestEncoder enc = new Hl7OverHttpRequestEncoder();
    enc.setPath(myPath);
    enc.setHost(myHost);
    enc.setPort(myPort);
    enc.setCharset(myCharset);
    if (myAuthorizationCallback != null) {
      enc.setUsername(myAuthorizationCallback.provideUsername(myPath));
      enc.setPassword(myAuthorizationCallback.providePassword(myPath));
    }
    enc.setSigner(mySigner);
    enc.setDataProvider(theMessageToSend);

    ourLog.debug("Writing message to OutputStream");
    enc.encodeToOutputStream(myOutputStream);
    myOutputStream.flush();

    ourLog.debug("Reading response from OutputStream");

    RawReceivable response = null;
View Full Code Here

Examples of ca.uhn.hl7v2.hoh.encoder.Hl7OverHttpRequestEncoder

   */
  public void writeMessage(String theRawMessage) throws LLPException, IOException {

    AbstractHl7OverHttpEncoder e;
    if (myProtocol.getRole() == ServerRoleEnum.CLIENT) {
      e = new Hl7OverHttpRequestEncoder();
      if (myProtocol.getAuthorizationClientCallback() != null) {
        e.setUsername(myProtocol.getAuthorizationClientCallback().provideUsername(myProtocol.getUriPath()));
        e.setPassword(myProtocol.getAuthorizationClientCallback().providePassword(myProtocol.getUriPath()));
      }
    } else {
View Full Code Here

Examples of ca.uhn.hl7v2.hoh.encoder.Hl7OverHttpRequestEncoder

  }


  private IReceivable<String> doSendAndReceiveInternal(ISendable theMessageToSend, Socket socket) throws IOException, DecodeException, SignatureVerificationException, EncodeException {
    Hl7OverHttpRequestEncoder enc = new Hl7OverHttpRequestEncoder();
    enc.setUri(myUri);
    enc.setHost(myHost);
    enc.setPort(myPort);
    enc.setCharset(myCharset);
    if (myAuthorizationCallback != null) {
      enc.setUsername(myAuthorizationCallback.provideUsername(myUri));
      enc.setPassword(myAuthorizationCallback.providePassword(myUri));
    }
    enc.setSigner(mySigner);
    enc.setDataProvider(theMessageToSend);

    ourLog.debug("Writing message to OutputStream");
    enc.encodeToOutputStream(myOutputStream);
    myOutputStream.flush();

    ourLog.debug("Reading response from OutputStream");

    RawReceivable response = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.