Some non serious IT service cos develop web apps and roll it out to customers without paying attention to little details like URI's, UI component names they choose in HTTP communication, information they drop in cookies, etc., They little realize these oversights pose potential security risk to their application, especially when they are exposed over internet not to mention how silly it looks to expose your class name or object responsibility to users of the system. Some common examples look like,
http://my.domain.com/myapp/RegistrationServlet?userid=abc&password=bbb&address=blah
Issue 1: You indicate what technology you implement and which object is working your request; the complex your app the longer the url normally tend to be.
Issue 2: Whether you do FORM POST or pass it in as URL args, attaching element names like userid, password, etc., provide obvious clues to what you intend to do. Not a good practice.
With such apps the common dilemma we all face is not wanting to invest time working on nomenclatures. Luckily, webservers come to our rescue
Based on your deployment architecture, whether you have an application server + webserver or just webserver, one can use either mod_rewrite or mod_proxy modules of apache that can shield longer URL's from user with a short one.
If your app lives only on webserver, say a php or asp based application you can rewrite the above example like,
RewriteEngine onRewriteRule ^/reg$ /myapp/RegistrationServletRewriteCond %{QUERY_STRING} id=([-a-zA-Z0-9_+]+)
RewriteRule ^/?reg$ %1? [R=301,L]which is basically same as http://my.domain.com/reg/abc/abb/blah
If your app has webserver fronting an application server you cannot just rewrite, you may have to forward proxy short url requests to long one internally before some kind of plugin can forward that request to application server.