• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[ERRest] - Manually generating rest URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ERRest] - Manually generating rest URL


  • Subject: [ERRest] - Manually generating rest URL
  • From: Dev WO via Webobjects-dev <email@hidden>
  • Date: Thu, 16 Apr 2020 18:42:14 +0200

Hi everyone,

I’m currently trying a few things with ERRest.
In a stateless component, I need to create some urls manually (they will be
used inside a script element).
When I was calling my DirectAction class, I was just doing this:

        context().generateRelativeURLs();
        NSMutableDictionary<String, String> dict = new
NSMutableDictionary<String, String>();
        ...
        dict.put(key, value);
        ...
        String relativeUrl = context()._directActionURL(“myDirectAction", dict,
false);


But I wasn’t able to find out the equivalent _directActionURL() method to
generate the Rest (with /ra) URL.

How would you manually generate a relative URL for an ERRest request?

Thanks a lot and stay safe,

Xavier

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [ERRest] - Manually generating rest URL
      • From: Jesse Tayler via Webobjects-dev <email@hidden>
  • Prev by Date: Re: Help with Apache... stuck - SOLVED
  • Next by Date: Re: [ERRest] - Manually generating rest URL
  • Previous by thread: Re: Help with Apache... stuck - SOLVED
  • Next by thread: Re: [ERRest] - Manually generating rest URL
  • Index(es):
    • Date
    • Thread