View Javadoc
1   /*
2    * To change this license header, choose License Headers in Project Properties.
3    * To change this template file, choose Tools | Templates
4    * and open the template in the editor.
5    */
6   package ca.uhn.fhir.rest.gclient;
7   
8   /*
9    * #%L
10   * HAPI FHIR - Core Library
11   * %%
12   * Copyright (C) 2014 - 2018 University Health Network
13   * %%
14   * Licensed under the Apache License, Version 2.0 (the "License");
15   * you may not use this file except in compliance with the License.
16   * You may obtain a copy of the License at
17   * 
18   *      http://www.apache.org/licenses/LICENSE-2.0
19   * 
20   * Unless required by applicable law or agreed to in writing, software
21   * distributed under the License is distributed on an "AS IS" BASIS,
22   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23   * See the License for the specific language governing permissions and
24   * limitations under the License.
25   * #L%
26   */
27  
28  import org.hl7.fhir.instance.model.api.IBaseBundle;
29  import org.hl7.fhir.instance.model.api.IBaseResource;
30  
31  /**
32   *
33   * @author HGS
34   */
35  public interface IOperationProcessMsg{
36  
37      /**
38       * Set the Message Bundle to POST to the messaging server.<br>
39       * After this call you must choose either the method synchronous or asynchronous to set the processing mode.
40       * 
41       * @param <R>
42       * @param theMsgBundle A Bundle of type message
43       * @return 
44       */
45      <R extends IBaseResource> IOperationProcessMsgMode<R> setMessageBundle(IBaseBundle theMsgBundle);
46  
47      /**
48       * An optional query parameter indicating that responses from the receiving server should be sent to this url
49       * 
50       * @param respondToUri The receiving endpoint to witch server response messages should be sent.
51       * @return 
52       */
53      IOperationProcessMsg setResponseUrlParam(String respondToUri);
54  }