org.orbeon.oxf.pipeline.api
Interface ExternalContext.Response

Enclosing interface:
ExternalContext

public static interface ExternalContext.Response


Field Summary
static int REWRITE_MODE_ABSOLUTE
           
static int REWRITE_MODE_ABSOLUTE_PATH
           
static int REWRITE_MODE_ABSOLUTE_PATH_NO_CONTEXT
           
static int REWRITE_MODE_ABSOLUTE_PATH_OR_RELATIVE
           
 
Method Summary
 void addHeader(String name, String value)
           
 boolean checkIfModifiedSince(long lastModified, boolean allowOverride)
           
 String getCharacterEncoding()
           
 String getNamespacePrefix()
           
 Object getNativeResponse()
           
 OutputStream getOutputStream()
           
 PrintWriter getWriter()
           
 boolean isCommitted()
           
 void reset()
           
 String rewriteActionURL(String urlString)
           
 String rewriteActionURL(String urlString, String portletMode, String windowState)
           
 String rewriteRenderURL(String urlString)
           
 String rewriteRenderURL(String urlString, String portletMode, String windowState)
           
 String rewriteResourceURL(String urlString, boolean absolute)
           
 String rewriteResourceURL(String urlString, int rewriteMode)
           
 void sendError(int len)
           
 void sendRedirect(String pathInfo, Map<String,String[]> parameters, boolean isServerSide, boolean isExitPortal, boolean isNoRewrite)
           
 void setCaching(long lastModified, boolean revalidate, boolean allowOverride)
           
 void setContentLength(int len)
           
 void setContentType(String contentType)
           
 void setHeader(String name, String value)
           
 void setResourceCaching(long lastModified, long expires)
          Set expiration headers for resources.
 void setStatus(int status)
           
 void setTitle(String title)
           
 

Field Detail

REWRITE_MODE_ABSOLUTE

static final int REWRITE_MODE_ABSOLUTE
See Also:
Constant Field Values

REWRITE_MODE_ABSOLUTE_PATH

static final int REWRITE_MODE_ABSOLUTE_PATH
See Also:
Constant Field Values

REWRITE_MODE_ABSOLUTE_PATH_OR_RELATIVE

static final int REWRITE_MODE_ABSOLUTE_PATH_OR_RELATIVE
See Also:
Constant Field Values

REWRITE_MODE_ABSOLUTE_PATH_NO_CONTEXT

static final int REWRITE_MODE_ABSOLUTE_PATH_NO_CONTEXT
See Also:
Constant Field Values
Method Detail

getWriter

PrintWriter getWriter()
                      throws IOException
Throws:
IOException

getOutputStream

OutputStream getOutputStream()
                             throws IOException
Throws:
IOException

isCommitted

boolean isCommitted()

reset

void reset()

setContentType

void setContentType(String contentType)

setStatus

void setStatus(int status)

setContentLength

void setContentLength(int len)

setHeader

void setHeader(String name,
               String value)

addHeader

void addHeader(String name,
               String value)

sendError

void sendError(int len)
               throws IOException
Throws:
IOException

getCharacterEncoding

String getCharacterEncoding()

sendRedirect

void sendRedirect(String pathInfo,
                  Map<String,String[]> parameters,
                  boolean isServerSide,
                  boolean isExitPortal,
                  boolean isNoRewrite)
                  throws IOException
Throws:
IOException

setCaching

void setCaching(long lastModified,
                boolean revalidate,
                boolean allowOverride)

setResourceCaching

void setResourceCaching(long lastModified,
                        long expires)
Set expiration headers for resources. o If lastModified is > 0, Last-Modified is set to that value o If lastModified is <= 0, Last-Modified and Expires are set to the time of the response o If expires is > 0 and lastModified is > 0, Expires is set to that value o If expires is <= 0 , Expires is set using the default policy: 1/10 of the age of the resource

Parameters:
lastModified - last modification date of resource, or <= 0 if unknown
expires - requested expiration, or <=0 if unknown or to trigger default policy

checkIfModifiedSince

boolean checkIfModifiedSince(long lastModified,
                             boolean allowOverride)

rewriteActionURL

String rewriteActionURL(String urlString)

rewriteRenderURL

String rewriteRenderURL(String urlString)

rewriteActionURL

String rewriteActionURL(String urlString,
                        String portletMode,
                        String windowState)

rewriteRenderURL

String rewriteRenderURL(String urlString,
                        String portletMode,
                        String windowState)

rewriteResourceURL

String rewriteResourceURL(String urlString,
                          boolean absolute)

rewriteResourceURL

String rewriteResourceURL(String urlString,
                          int rewriteMode)

getNamespacePrefix

String getNamespacePrefix()

setTitle

void setTitle(String title)

getNativeResponse

Object getNativeResponse()