View Javadoc

1   /*
2      Licensed under the Apache License, Version 2.0 (the "License");
3      you may not use this file except in compliance with the License.
4      You may obtain a copy of the License at
5   
6        http://www.apache.org/licenses/LICENSE-2.0
7   
8      Unless required by applicable law or agreed to in writing, software
9      distributed under the License is distributed on an "AS IS" BASIS,
10     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11     See the License for the specific language governing permissions and
12     limitations under the License.
13  */
14  package uk.nhs.interoperability.infrastructure;
15  
16  import uk.nhs.interoperability.service.ITKService;
17  
18  // TODO: Auto-generated Javadoc
19  /**
20   * The Class ITKServiceImpl.
21   *
22   * @author Michael Odling-Smee
23   * @author Nicholas Jone
24   * @since 0.1
25   */
26  public class ITKServiceImpl implements ITKService {
27  
28  	/** The service id. */
29  	private String serviceId;
30      
31      /** The supports sync. */
32      private boolean supportsSync;
33      
34      /** The supports async. */
35      private boolean supportsAsync;
36      
37      /** The base64. */
38      private boolean base64;
39      
40      /** The mime type. */
41      private String mimeType;
42      
43      /* (non-Javadoc)
44       * @see uk.nhs.interoperability.service.ITKService#getMimeType()
45       */
46      public String getMimeType() {
47  		return mimeType;
48  	}
49  	
50  	/**
51  	 * Sets the mime type.
52  	 *
53  	 * @param mimeType the new mime type
54  	 */
55  	public void setMimeType(String mimeType) {
56  		this.mimeType = mimeType;
57  	}
58  	
59  	/* (non-Javadoc)
60  	 * @see uk.nhs.interoperability.service.ITKService#isBase64()
61  	 */
62  	public boolean isBase64(){
63      	return base64;
64      }
65      
66      /**
67       * Sets the base64.
68       *
69       * @param base64 the new base64
70       */
71      public void setBase64(boolean base64){
72      	this.base64 = base64;
73      }
74      
75      /* (non-Javadoc)
76       * @see uk.nhs.interoperability.service.ITKService#supportsAsync()
77       */
78      public boolean supportsAsync(){
79      	return supportsAsync;
80      }
81      
82      /**
83       * Sets the supports async.
84       *
85       * @param supportsAsync the new supports async
86       */
87      public void setSupportsAsync(boolean supportsAsync){
88      	this.supportsAsync = supportsAsync;
89      }
90      
91      /* (non-Javadoc)
92       * @see uk.nhs.interoperability.service.ITKService#supportsSync()
93       */
94      public boolean supportsSync(){
95      	return supportsSync;
96      }
97      
98      /**
99       * Sets the supports sync.
100      *
101      * @param supportsSync the new supports sync
102      */
103     public void setSupportsSync(boolean supportsSync){
104     	this.supportsSync = supportsSync;
105     }
106     
107 	/* (non-Javadoc)
108 	 * @see uk.nhs.interoperability.service.ITKService#getServiceId()
109 	 */
110 	public String getServiceId() {
111 		return serviceId;
112 	}
113 
114 	/**
115 	 * Sets the service id.
116 	 *
117 	 * @param serviceId the new service id
118 	 */
119 	public void setServiceId(String serviceId) {
120 		this.serviceId = serviceId;
121 	}
122 	
123 	/**
124 	 * Instantiates a new iTK service impl.
125 	 *
126 	 * @param serviceId the service id
127 	 */
128 	public ITKServiceImpl(String serviceId){
129 		this.serviceId = serviceId;
130 	}
131 	
132 }