public class ITKServiceImpl extends Object implements ITKService
| Constructor and Description |
|---|
ITKServiceImpl(String serviceId)
Instantiates a new iTK service impl.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMimeType()
Specifies the appropriate mime type
for this service
|
String |
getServiceId()
Obtains the service identifier
associated with this ITKService
object
|
boolean |
isBase64()
Determines whether this service
expects the business payload data
to be base64 encoded.
Note: In ITK all ADT v2 pipe and hat messages are required to base64 encoded during transmission |
void |
setBase64(boolean base64)
Sets the base64.
|
void |
setMimeType(String mimeType)
Sets the mime type.
|
void |
setServiceId(String serviceId)
Sets the service id.
|
void |
setSupportsAsync(boolean supportsAsync)
Sets the supports async.
|
void |
setSupportsSync(boolean supportsSync)
Sets the supports sync.
|
boolean |
supportsAsync()
Determines whether or not this service
supports an asynchronous invocation.
|
boolean |
supportsSync()
Determines whether or not this service
supports synchronous invocation.
|
public ITKServiceImpl(String serviceId)
serviceId - the service idpublic String getMimeType()
ITKServicegetMimeType in interface ITKServicetext/xmlpublic void setMimeType(String mimeType)
mimeType - the new mime typepublic boolean isBase64()
ITKServiceisBase64 in interface ITKServicetrue if the
service defines that the payload data
should be base64 encoding during transmission;
false otherwisepublic void setBase64(boolean base64)
base64 - the new base64public boolean supportsAsync()
ITKServicesupportsAsync in interface ITKServicetrue if the service
supports asynchronous invocationpublic void setSupportsAsync(boolean supportsAsync)
supportsAsync - the new supports asyncpublic boolean supportsSync()
ITKServicesupportsSync in interface ITKServicetrue if the service
supports synchronous invocationpublic void setSupportsSync(boolean supportsSync)
supportsSync - the new supports syncpublic String getServiceId()
ITKServicegetServiceId in interface ITKServiceurn:nhs-itk:services:201005:transferPatient-v1-0public void setServiceId(String serviceId)
serviceId - the new service idAll content is available under the Open Government Licence, except where otherwise stated
All example source code is available under Apache 2.0, except where otherwise stated