com.basecmp.core.servlets
Class SSIIncludeTransformer

java.lang.Object
  extended byReplaceTransformer
      extended bycom.basecmp.core.servlets.SSIIncludeTransformer

public class SSIIncludeTransformer
extends ReplaceTransformer

Transformer implementation parses the given repsonse for occurrences of server-side-include and replacing them agains evaluated code. The ssi-include directive is the only supported directive. All other directives are not implemented on purpose for security reasons. input-object. Created on 15.06.2006

See Also:
Serialized Form
Author:
Wolfgang Schröder

Constructor Summary
SSIIncludeTransformer(ServletRequest request, ServletResponse response, ServletContext context)
          Main constructor.
 
Method Summary
 java.lang.String getReplacement(java.lang.String[] matchingGroups)
          Replaces all occurences of ssi-include-directive with the evaluated template-response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSIIncludeTransformer

public SSIIncludeTransformer(ServletRequest request,
                             ServletResponse response,
                             ServletContext context)
Main constructor.

Parameters:
request - original request
response - Response which contains ssi-includes
context - ServletContext object, used to get a request dispatcher.
Method Detail

getReplacement

public java.lang.String getReplacement(java.lang.String[] matchingGroups)
Replaces all occurences of ssi-include-directive with the evaluated template-response.



Copyright © 2004 by basecmp® - Professional Web Solutions