jodd.madvoc
Class MadvocUtil

java.lang.Object
  extended by jodd.madvoc.MadvocUtil

public class MadvocUtil
extends java.lang.Object

Few madvoc utilities.


Constructor Summary
MadvocUtil()
           
 
Method Summary
static java.lang.String extractHttpMethodFromActionPath(java.lang.String actionPath)
          Extracts http method from action path.
static int indexOfDotAfterSlash(java.lang.String str)
          Locates first dot after the last slash.
static int lastIndexOfDotAfterSlash(java.lang.String str)
          Locates last index of dot after the optional last slash.
static int lastIndexOfSlashDot(java.lang.String str)
          Locates last dot after the last slash or just slash.
static java.lang.String stripHttpMethodFromActionPath(java.lang.String actionPath)
          Strips http method from action path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MadvocUtil

public MadvocUtil()
Method Detail

lastIndexOfSlashDot

public static int lastIndexOfSlashDot(java.lang.String str)
Locates last dot after the last slash or just slash.


lastIndexOfDotAfterSlash

public static int lastIndexOfDotAfterSlash(java.lang.String str)
Locates last index of dot after the optional last slash.


indexOfDotAfterSlash

public static int indexOfDotAfterSlash(java.lang.String str)
Locates first dot after the last slash.


extractHttpMethodFromActionPath

public static java.lang.String extractHttpMethodFromActionPath(java.lang.String actionPath)
Extracts http method from action path. Returns null if no http method is specified.


stripHttpMethodFromActionPath

public static java.lang.String stripHttpMethodFromActionPath(java.lang.String actionPath)
Strips http method from action path.



Copyright © 2003-2011 Jodd Team