org.ztemplates.web.request.impl
Class ZActionServiceImpl

java.lang.Object
  extended by org.ztemplates.web.request.impl.ZActionServiceImpl
All Implemented Interfaces:
ZIActionService, ZIService

public class ZActionServiceImpl
extends Object
implements ZIActionService


Field Summary
 
Fields inherited from interface org.ztemplates.web.ZIActionService
SPRING_NAME
 
Constructor Summary
ZActionServiceImpl(ZIUrlHandler urlHandler, ZIUrlFactory urlFactory, String contextPath, String scheme, String httpPrefix, String httpsPrefix)
           
 
Method Summary
 String createNestedUrl(Object nestedAction)
          Creates a url to the specified nested action object, the url is relative to the current nested action.
 String createUrl(Object action)
          Creates a url to the specified action object
 String createUrl(ZMatch.Protocol requiresProtocol, Object action)
           
 String createUrl(ZMatch.Protocol requiresProtocol, String path)
           
 Object process(ZMatch.Protocol protocol, String url, Map<String,String[]> paramMap)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZActionServiceImpl

public ZActionServiceImpl(ZIUrlHandler urlHandler,
                          ZIUrlFactory urlFactory,
                          String contextPath,
                          String scheme,
                          String httpPrefix,
                          String httpsPrefix)
Method Detail

process

public Object process(ZMatch.Protocol protocol,
                      String url,
                      Map<String,String[]> paramMap)
               throws Exception
Specified by:
process in interface ZIActionService
Throws:
Exception

createNestedUrl

public String createNestedUrl(Object nestedAction)
                       throws Exception
Description copied from interface: ZIActionService
Creates a url to the specified nested action object, the url is relative to the current nested action. Can only be while processing a nested action.

Specified by:
createNestedUrl in interface ZIActionService
Returns:
Throws:
Exception

createUrl

public String createUrl(ZMatch.Protocol requiresProtocol,
                        String path)
                 throws Exception
Specified by:
createUrl in interface ZIActionService
Throws:
Exception

createUrl

public String createUrl(ZMatch.Protocol requiresProtocol,
                        Object action)
                 throws Exception
Specified by:
createUrl in interface ZIActionService
Throws:
Exception

createUrl

public String createUrl(Object action)
                 throws Exception
Description copied from interface: ZIActionService
Creates a url to the specified action object

Specified by:
createUrl in interface ZIActionService
Returns:
Throws:
Exception


Copyright © 2011. All Rights Reserved.