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()
ITKService
getMimeType
in interface ITKService
text/xml
public void setMimeType(String mimeType)
mimeType
- the new mime typepublic boolean isBase64()
ITKService
isBase64
in interface ITKService
true
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()
ITKService
supportsAsync
in interface ITKService
true
if the service
supports asynchronous invocationpublic void setSupportsAsync(boolean supportsAsync)
supportsAsync
- the new supports asyncpublic boolean supportsSync()
ITKService
supportsSync
in interface ITKService
true
if the service
supports synchronous invocationpublic void setSupportsSync(boolean supportsSync)
supportsSync
- the new supports syncpublic String getServiceId()
ITKService
getServiceId
in interface ITKService
urn:nhs-itk:services:201005:transferPatient-v1-0
public 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