Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8208123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:14:09+00:00 2026-06-07T09:14:09+00:00

Before I started with Restlet I already wrote a Jersey client. It was very

  • 0

Before I started with Restlet I already wrote a Jersey client. It was very intutiv – it seems like Restlet isnt. There is not much documentation and I can’t solve the easiest problems.

Where I am:

    service = new ClientResource("http://localhost:8080/com-project-core/rest");
    service.setChallengeResponse(ChallengeScheme.HTTP_BASIC, "admin", "geheima");

What I get from documentation:

 String myString = service.get(String.class);

or wrapping up a Resource:

 ConnectedResourceIF connectedResource = service.wrap(ConnectedResourceIF.class);

Thats working. But what about:

A. When I want to change my service path? In Jersey it was intuitiv like

 service.path("foo").path("bar")

for

http://localhost:8080/com-project-core/rest/foo/bar

B. I want to set a acceptHeader. In jersey it was like

   service.accept(MediaType.TEXT_PLAIN)

C. I want to set query parameters. In jersey:

   service.queryParam("1","foo").queryParam("2","bar")

Sorry, hope someone can solve this beginner problems. I cant find somethign in the restlet documentation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:14:10+00:00Added an answer on June 7, 2026 at 9:14 am

    For A:

    service.getChild("/foo/bar", ConnectedResourceIF.class);

    For B (need a recent 2.1 RCx version):

    service.accept(MediaType.TEXT_PLAIN);

    For C (need a recent 2.1 RCx version):

    service.setQueryValue("1","foo");

    service.setQueryValue("2","bar");

    The best place to look for such things is the Javadocs, because those API changes are pretty recent:
    http://www.restlet.org/documentation/snapshot/jee/api/org/restlet/resource/ClientResource.html

    We are working on a new in-depth tutorial for next 2.2 version. First finishing "Restlet in Action" book 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I haven't used the STL much before, but I started to on this huffman
In my early days of programming, before I started working professionally, I wrote a
Before I started implementing Facebook authentication, my logout controller looked like this: # Kill
I am very new to mac programming. Just started before 3 days. I am
So just getting started with Azure tables- haven't played with them before so wanted
Before starting, I'm not asking about standard coding practice or etiquette. My question is
How do I send arguments to a process that started before? Suppose we started
This site was working properly before I started encountering an error after entering some
I created a new Branch before I started dev on something experimental. I usually
Before I started using Git as my SCM, I would throughly test the code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.