Questions tagged [clientresource]
12 questions
6
votes
3 answers
Add headers to request wrapped by ClientResource in Restlet
How do I add my own headers to a request wrapped by ClientResource in Restlet? For example, I've read that you can use the following when working directly with Client:
Form headers = (Form)…

tacos_tacos_tacos
- 10,277
- 11
- 73
- 126
5
votes
1 answer
Keycloak: Add Client Roles to Service Account Roles with Java API client
I want to add client roles for a service account for an existing Keycloak client (service user is enabled on this client).
I have managed to do this via the web panel (see screenshot).
However, I need to do this role assignment using Keycloak Java…

André
- 464
- 4
- 17
3
votes
1 answer
GWT create Image using ImageResource
My question is really simple and shot. but hope I can have a clear answer.
We can create GWT Image in many ways.
Image image = new Image ( (ImageResource)imageRes);
Image image = new Image ( (ImageResource)imageRes.getSafeUri() );
Image image =…

Joey
- 2,732
- 11
- 43
- 63
2
votes
1 answer
Post to server using Java restlet
I am trying to post to server a JSONO bject, using restlet.
When I try to post using the POSTMAN it is able to post, but when I try to post from the java code using the restlet I get an error as:
Unable to find a converter for this object
…

Vraj Solanki
- 339
- 4
- 16
1
vote
1 answer
Error loading JavaScript file in EPiServer module after upgrading from .NET 5 to .NET 6
I recently updated my Episerver project's custom module from .NET 5 to .NET 6. In the previous version, the project used Episerver 12.9.0, but after the upgrade, it now uses Episerver 12.19.0.
However, after completing the upgrade, I encountered an…

Eranga Wijethunga
- 185
- 8
1
vote
1 answer
How can I update a existing Keycloak client attribute in a realm?
I've added few attributes for each client in keycloak, and now I need to update the existing client attribute to new value without deleting the client.
List list =…

Nikhil Lingam
- 121
- 2
- 12
1
vote
1 answer
How to set the timeout of request sended by ClientResource in Restlet Framework
I'm using the Restlet framework and specifically the class ClientResource to send HTTP request to a server through its own get(), post(), put() and delete() methods. Since sometimes the server is offline and therefore unreachable, I would like to…

Umberto Covino
- 71
- 1
- 7
1
vote
1 answer
GWT how to add css style on Image Resource
I am using GWT. I have an Image Resource object. for example,
ImageResource image = ClientResources.of().images().icon();
How can I add some css styles on this image. Since this is ImageResource, not the Image object, I cannot use…

Joey
- 2,732
- 11
- 43
- 63
0
votes
1 answer
How to consume servlet ClientResource with URL parameters?
I have a restlet resource mapped as follows:
router.attach("/activities/{userid}/{criteria}/{value}", ActivitiesResource.class);
I am testing the resource from cmd line with curl and it works OK. Now I want to consume it from another resource.…

JohnIdol
- 48,899
- 61
- 158
- 242
0
votes
3 answers
JSON Input for POST request to call REST API
How do i convert a model Person to match the input?
Person p = new Person(name, age, amountInBank);
(name in String, age in int and amountInBank in double)
I want my JSON Input to be as follow:
{
"ID": "H123",
"list" : [
{
"name" :…

Cramel Ang
- 71
- 2
- 8
0
votes
1 answer
RESTlet ClientResource with progress bar
I'm creating an android app which is uploading files to RESTlet server. I'm using below code.
Representation file = new FileRepresentation(filePath, MediaType.IMAGE_ALL);
FormDataSet form = new…

Fabian Mizieliński
- 94
- 1
- 9
0
votes
0 answers
Android restler error (1001)
I'm using restlet 2.2 on android 2.3.3 and I need estabilish a https connection with a server but this server don't have certificate and because this i get the following errors:
06-05 19:11:13.786: W/System.err(2923): Communication Error (1001) -…

ademar111190
- 14,215
- 14
- 85
- 114