org.enhydra.snapperPreviewer.presentation
Class Translate
java.lang.Object
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
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 |
Translate
public Translate()
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