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 6954927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:40:15+00:00 2026-05-27T14:40:15+00:00

To translate an incoming http request to the specific method in Play! web framework

  • 0

To translate an incoming http request to the specific method in Play! web framework is straight forward, which look like as follows:

GET    /users/{userId}  UserController.getUser   
POST   /users           UserController.addUser
PUT    /users           UserController.updateUser
DELETE /users/{userId}  UserController.deleteUser

But I find it hard to do this in Mule-Restlet.

<model name="userModel">
    <service name="userService">
        <inbound>
            <inbound-endpoint address="http://localhost:63080"/>
        </inbound>
        <outbound>
            <filtering-router>
                <outbound-endpoint address="vm://userController"/>
                <or>
                    <restlet:uri-template-filter pattern="/users/{userId}" verbs="GET"/>
                    <restlet:uri-template-filter pattern="/users" verbs="POST"/>
                    <restlet:uri-template-filter pattern="/users" verbs="PUT"/>
                    <restlet:uri-template-filter pattern="/users/{userId}" verbs="DELETE"/>
                </or>
            </filtering-router>
        </outbound>
    </service>
    <service name="userController">
        <inbound>
            <inbound-endpoint address="vm://userController"/>
        </inbound>
        <!-- **TODO: How to implement UserController** -->
        <component class="com.ggd543.mulerestletdemo.user.UserController"/>
    </service>
</model>
  • 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-05-27T14:40:16+00:00Added an answer on May 27, 2026 at 2:40 pm

    According to the Restlet Transport doc, you should be able to shorten your routing map to:

    <or-filter>
        <restlet:uri-template-filter pattern="/users" verbs="POST PUT"/>
        <restlet:uri-template-filter pattern="/users/{userId}" verbs="GET DELETE"/>
    </or-filter>
    

    Then to develop your UserController resource, refer to the Restlet’s user guide that is relevant to the version in use by the transport.

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

Sidebar

Related Questions

I'm using .NET MVC 2 If an incoming request contains the URL: http://something.com/1234 where
We have a thin web layer ( Scalatra ) that translates incoming HTTP requests
I have a method Translate extension which searches for a translation. Normally translations are
How do I translate something like this into SQLAlchemy? select x - y as
How do I translate something like this into SQLAlchemy? SELECT (a * b) -
I'd like to translate my GUI into other languages. Unfortunately I don't speak Mandarin,
I am using a translate animation: <?xml version=1.0 encoding=utf-8?> <set xmlns:android=http://schemas.android.com/apk/res/android> <translate android:fromXDelta=-75%p android:toXDelta=0%p
I'm trying to translate a bash script into a .bat script. The specific line
I'd like to translate the OpenIdAuthentication plugin into another language but I'd like not
To translate my WPF application I use a Markup extension which returns a Binding

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.