manager
Class RequestInfo

java.lang.Object
  extended by manager.RequestInfo

public class RequestInfo
extends java.lang.Object

Diese Klasse enthält Informationen, die mit genau einem Request in Zusammenhang stehen, also z.B. HttpServletRequest, HttpServletResponse, PrintWriter/ServletOutputStream sowie entsprechender Kontext. Weiterhin ex. Instanz auf VarManager.

Author:
Thorsten Berger

Constructor Summary
RequestInfo(Kontext theKontext, HttpServletRequest request, HttpServletResponse response)
          RequestInfo instanziieren.
 
Method Summary
 java.lang.String getContent()
           
 java.lang.String getContextPath()
           
 Kontext getKontext()
           
 ServletOutputStream getOutStream()
           
 java.io.PrintWriter getOutWriter()
           
 HttpServletRequest getRequest()
           
 java.lang.String getRequestURI()
           
 HttpServletResponse getResponse()
           
 java.lang.String getServletPath()
           
 java.lang.String getServletURLBase()
           
 java.lang.String getURISuffix()
          extrahiert an URL angehängten Pfad
 VarManager getVM()
           
 java.lang.String removeParametersAndBuildQueryString(java.lang.String[] removePars)
           
static java.lang.String removeSlashes(java.lang.String s, boolean leading, boolean trailing)
          Methode, um Slashs am Anfang bzw.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestInfo

public RequestInfo(Kontext theKontext,
                   HttpServletRequest request,
                   HttpServletResponse response)
            throws java.io.IOException
RequestInfo instanziieren.

Parameters:
theKontext - akt. Kontext
request -
response -
Throws:
java.io.IOException
Method Detail

getServletURLBase

public java.lang.String getServletURLBase()

getContextPath

public java.lang.String getContextPath()

getURISuffix

public java.lang.String getURISuffix()
extrahiert an URL angehängten Pfad

Parameters:
RequestURI -
ServletPath -
Returns:

removeSlashes

public static java.lang.String removeSlashes(java.lang.String s,
                                             boolean leading,
                                             boolean trailing)
Methode, um Slashs am Anfang bzw. Ende eines Strings zu entfernen.

Parameters:
s -
leading -
trailing -
Returns:

removeParametersAndBuildQueryString

public java.lang.String removeParametersAndBuildQueryString(java.lang.String[] removePars)

getKontext

public Kontext getKontext()
Returns:
Kontext

getRequest

public HttpServletRequest getRequest()
Returns:
Request

getResponse

public HttpServletResponse getResponse()
Returns:
Response

getOutWriter

public java.io.PrintWriter getOutWriter()
Returns:
PrintWriter out

getOutStream

public ServletOutputStream getOutStream()
                                 throws java.io.IOException
Returns:
Throws:
java.io.IOException

getContent

public java.lang.String getContent()

getRequestURI

public java.lang.String getRequestURI()
Returns:

getServletPath

public java.lang.String getServletPath()
Returns:

getVM

public VarManager getVM()
Returns: