Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Component Sharing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gagandeep Singh Bhatia
Component Sharing
Commits
25a6ac9f
Commit
25a6ac9f
authored
May 13, 2024
by
Sonawane Amol Madhjuar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
be953b66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
Amol/Proteus_Lib_Jar/Framework6M/DocumentViewerService.java
Amol/Proteus_Lib_Jar/Framework6M/DocumentViewerService.java
+41
-0
No files found.
Amol/Proteus_Lib_Jar/Framework6M/DocumentViewerService.java
0 → 100644
View file @
25a6ac9f
package
ibase
.
webService
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.ws.rs.GET
;
import
javax.ws.rs.HeaderParam
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.Produces
;
import
javax.ws.rs.QueryParam
;
import
javax.ws.rs.core.Context
;
import
javax.ws.rs.core.MediaType
;
import
javax.ws.rs.core.Response
;
import
ibase.utility.BaseException
;
import
ibase.utility.BaseLogger
;
import
ibase.webitm.utility.DocumentViewerServiceUtility
;
@Path
(
"/DocumentViewerService"
)
public
class
DocumentViewerService
extends
RestAPIService
{
@GET
@Path
(
"/getPreviewImage"
)
@Produces
(
MediaType
.
APPLICATION_JSON
)
//pass the parameter
public
Response
getAttachConfigData
(
@QueryParam
(
"OBJ_NAME"
)
String
objName
,
@QueryParam
(
"REF_ID"
)
String
refId
,
@HeaderParam
(
"TOKEN_ID"
)
String
tokenIDfromHeader
)
throws
BaseException
,
Exception
{
BaseLogger
.
log
(
"3"
,
null
,
null
,
"getPreviewImage Service Called"
);
DocumentViewerServiceUtility
documentViewerServiceUtility
=
new
DocumentViewerServiceUtility
();
//chnages done at here check tommorow chng the varible
byte
[]
response
=
documentViewerServiceUtility
.
getPreviewImage
(
objName
,
refId
,
tokenIDfromHeader
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"response value ::"
+
response
);
return
Response
.
status
(
200
).
entity
(
response
).
build
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment