• 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
Re: Short URL Generation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Short URL Generation


  • Subject: Re: Short URL Generation
  • From: Lachlan Deck <email@hidden>
  • Date: Thu, 27 Oct 2005 15:16:27 +1000

Hi there,

On 27/10/2005, at 2:01 PM, Greg Hulands wrote:

I am looking to generate short URL's that I have created for mod_rewrite

I thought that was the idea of mod-rewrite. i.e., it translates urls for you e.g., from external short urls to internal long ones. So if you've set up your rewrite rules correctly, you shouldn't need to do much else.


for direct actions. After reading the docs, it looks like I have to create a subclass of WOContext and over ride the directActionURLForActionNamed method and have a map from a direct action class / method to a shortened url. I just wanted to ask to see if this is the best way to achieve this.

If you want to customise the way that incoming requests are handled, then you'd be looking at overriding WORequestHandler so that they are directed correctly.


I've, for example, extended com.webobjects.appserver._private.WODirectActionRequestHandler so that I can call:
http://.../wa/SomeClass/action


where my direct action classes are named, for easy reference in the project, like SomeClassDirectAction.java

with regards,
--

Lachlan Deck


_______________________________________________ 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: Short URL Generation
      • From: Chuck Hill <email@hidden>
References: 
 >Short URL Generation (From: Greg Hulands <email@hidden>)

  • Prev by Date: Content Management
  • Next by Date: Re: Short URL Generation
  • Previous by thread: Short URL Generation
  • Next by thread: Re: Short URL Generation
  • Index(es):
    • Date
    • Thread