Snapper 3.0 API

org.enhydra.snapperPreviewer.presentation
Class Translate

java.lang.Object
  extended by org.enhydra.snapperPreviewer.presentation.Translate
All Implemented Interfaces:
com.lutris.appserver.server.httpPresentation.HttpPresentation

public class Translate
extends java.lang.Object
implements com.lutris.appserver.server.httpPresentation.HttpPresentation


Constructor Summary
Translate()
           
 
Method Summary
static byte[] getContent(javax.servlet.http.HttpServletRequest request)
          Reads content from body of request.
static java.lang.String getRequestContentAsString(javax.servlet.http.HttpServletRequest httpServletRequest)
           
static java.lang.String replaceAll(java.lang.String input, java.lang.String forReplace, java.lang.String replaceWith)
           
 void run(com.lutris.appserver.server.httpPresentation.HttpPresentationComms comms)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Translate

public Translate()
Method Detail

run

public void run(com.lutris.appserver.server.httpPresentation.HttpPresentationComms comms)
         throws java.lang.Exception
Specified by:
run in interface com.lutris.appserver.server.httpPresentation.HttpPresentation
Throws:
java.lang.Exception

getRequestContentAsString

public static java.lang.String getRequestContentAsString(javax.servlet.http.HttpServletRequest httpServletRequest)
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

replaceAll

public static java.lang.String replaceAll(java.lang.String input,
                                          java.lang.String forReplace,
                                          java.lang.String replaceWith)

getContent

public static byte[] getContent(javax.servlet.http.HttpServletRequest request)
                         throws java.io.IOException
Reads content from body of request.

Parameters:
request -
Returns:
Throws:
java.io.IOException

Snapper 3.0 API