Escolar Documentos
Profissional Documentos
Cultura Documentos
Change History
TABLE OF CONTENTS
1. INTRODUCTION ...................................................................................................................................................................3
1.1 ABOUT THIS DOCUMENT....................................................................................................................................................3
2. API DESCRIPTION ...............................................................................................................................................................3
2.1 REQUEST FROM CLIENT .....................................................................................................................................................3
2.2 RESPONSE FROM IMS SERVER ..........................................................................................................................................3
DESIGN SPEC 3 (4)
1. INTRODUCTION
The document specifies the NIMS Email Attachment Retrieval API for third party solution.
2. API DESCRIPTION
IMS defines an API for 3rd party solution to retrieve email attachment raw contents from IMS server. To
serve the purpose without compromising IMS server performance a simple HTTP(s) based API backed
by servlet is defined.
To retrieve an email attachment from an IMS cluster, client can simply issue an http request as defined
below:
Parameter definitions:
reqID String for hexadecimal This parameter should be the one either contained
values of representing in an earlier service request from IMS to the 3rd
16-byte byte array party solution (client) or a new one client generates.
fileID String for hexadecimal This parameter is a hash code for a binary blob,
values of representing which is the whole content for a file in this case.
16-byte byte array
This parameter should be contained in an earlier
service request from IMS to the 3rd party solution
(client) or a new one the client. Client must provide
fileID in such way that IMS must be able to use this
parameter to identify the email attachment.
securityBlob string for hexadecimal IMS uses the security blob to authenticate the
values of a byte array connection from the client as well as validate the
of variable length request. There must be some mutual agreement on
security blob generation between IMS and client.
Response from IMS server is typical http response. Response header contains status code and if status
code is 200 it will also contain content length and content type (application/octet-stream). The response
body is attachment file raw content. The following table lists possible status code from response:
500 Internal server error, for example server throws exceptions when
handling request