Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.repoweb.action
Class UriBeautifier  view UriBeautifier download UriBeautifier.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byorg.repoweb.action.UriBeautifier

public class UriBeautifier
extends org.apache.struts.action.Action

Transform an URI to action call.

Read URI such as : repository/junit/jars/junti-3.8.1.jar.


Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
UriBeautifier()
           
 
Method Summary
private  java.lang.String decodeFilename(org.apache.struts.action.DynaActionForm form, java.lang.String uri)
           
private  java.lang.String decodeGroup(org.apache.struts.action.DynaActionForm form, java.lang.String uri)
           
private  java.lang.String decodeType(org.apache.struts.action.DynaActionForm form, java.lang.String uri)
           
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm objForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse res)
          Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it), with provision for handling exceptions thrown by the business logic.
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UriBeautifier

public UriBeautifier()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm objForm,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse res)
Description copied from class: org.apache.struts.action.Action

Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it), with provision for handling exceptions thrown by the business logic. Return an org.apache.struts.action.ActionForward instance describing where and how control should be forwarded, or null if the response has already been completed.


decodeGroup

private java.lang.String decodeGroup(org.apache.struts.action.DynaActionForm form,
                                     java.lang.String uri)

decodeType

private java.lang.String decodeType(org.apache.struts.action.DynaActionForm form,
                                    java.lang.String uri)

decodeFilename

private java.lang.String decodeFilename(org.apache.struts.action.DynaActionForm form,
                                        java.lang.String uri)