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
f424af9d
Commit
f424af9d
authored
Jun 26, 2024
by
Sonawane Amol Madhjuar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
eec844e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
Amol/Proteus_Lib_Jar/GenerateImage/CustomMenuImageService.java
...Proteus_Lib_Jar/GenerateImage/CustomMenuImageService.java
+47
-0
No files found.
Amol/Proteus_Lib_Jar/GenerateImage/CustomMenuImageService.java
0 → 100644
View file @
f424af9d
package
ibase
.
webService
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.ws.rs.FormParam
;
import
javax.ws.rs.HeaderParam
;
import
javax.ws.rs.POST
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.Produces
;
import
javax.ws.rs.core.Context
;
import
javax.ws.rs.core.Response
;
import
ibase.utility.BaseLogger
;
import
ibase.webitm.utility.CustomMenuImageServiceUtility
;
@Path
(
"/CustomMenuImageService"
)
public
class
CustomMenuImageService
extends
RestAPIService
{
@POST
@Produces
(
"image/png"
)
@Path
(
"/generateImage"
)
public
Response
generateImage
(
@FormParam
(
"fldValue"
)
String
fldValue
,
@FormParam
(
"object"
)
String
object
,
@FormParam
(
"objName"
)
String
objName
,
@FormParam
(
"ALT_FLD_VALUE"
)
String
ALT_FLD_VALUE
,
@HeaderParam
(
"TOKEN_ID"
)
String
tokenIDfromHeader
,
// @FormParam("Reload") String Reload,
@Context
HttpServletRequest
request
,
@Context
HttpServletResponse
response
)
{
CustomMenuImageServiceUtility
customMenuImageServiceUtility
=
new
CustomMenuImageServiceUtility
();
//customMenuImageServiceUtility.generateImage(fldValue, object, objName, ALT_FLD_VALUE,tokenIDfromHeader, request, response);
Response
rsResponse
=
customMenuImageServiceUtility
.
generateImage
(
fldValue
,
object
,
objName
,
ALT_FLD_VALUE
,
tokenIDfromHeader
,
request
,
response
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"response value :"
+
rsResponse
);
// Ensure the response is OK (status 200) and set the entity to response
return
Response
.
status
(
200
).
entity
(
rsResponse
.
getEntity
()).
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