tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Questions related to configuring a REST API on Apache
Date Wed, 18 Jun 2008 20:49:36 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vinay,

Vinay Chilakamarri wrote:
| While I got this to working, I now want to configure each of these
| hosts to serve a REST API.

How does your REST API differ from your, er... HTTP one?

| In other words, I have to map a URL like:
*http://localhost/rec1/getInfo *to
| an actual URL like* http://localhost:445/rec1/info.xml

Do you want your client to redirect to that second URL, or do you want
to return data that is available at that second URL?

Typically, REST services are ... services, and not just static data
(which your URL appears to be). If you are just talking about re-writing
URLs from one format to another, you can use "Redirect" directives in
Apache httpd (it was unclear from your original post if you are using
httpd or Tomcat) or use the url-rewrite package
(http://tuckey.org/urlrewrite/) from any webapp.

If you just want redirection after processing, a simply
"HttpServletResponse.sendRedirect" ought to do the trick.

Again, it's very unclear what you are really asking, here.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhZdOAACgkQ9CaO5/Lv0PBzQwCdHOfMiJGBKI1PZVQzAZBsyEhU
G9oAn3+P9DQ7T8HTR8b3eWB7KMNvDdY7
=Okh+
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message