org.apache.cocoon.components.language.markup.xsp
Class XSPResponseHelper

java.lang.Object
  extended by org.apache.cocoon.components.language.markup.xsp.XSPResponseHelper

public class XSPResponseHelper
extends Object

The XSP Response object helper

Version:
CVS $Id: XSPResponseHelper.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Ricardo Rocha

Constructor Summary
XSPResponseHelper()
           
 
Method Summary
static void addDateHeader(Response response, String name, Date date)
           
static void addDateHeader(Response response, String name, long date)
           
static void addDateHeader(Response response, String name, String date)
           
static void addDateHeader(Response response, String name, String date, DateFormat format)
           
static void addDateHeader(Response response, String name, String date, String format)
           
static void getLocale(Response response, ContentHandler handler)
           
static void setDateHeader(Response response, String name, Date date)
           
static void setDateHeader(Response response, String name, long date)
           
static void setDateHeader(Response response, String name, String date)
           
static void setDateHeader(Response response, String name, String date, DateFormat format)
           
static void setDateHeader(Response response, String name, String date, String format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSPResponseHelper

public XSPResponseHelper()
Method Detail

getLocale

public static void getLocale(Response response,
                             ContentHandler handler)
                      throws SAXException
Throws:
SAXException

addDateHeader

public static void addDateHeader(Response response,
                                 String name,
                                 long date)

addDateHeader

public static void addDateHeader(Response response,
                                 String name,
                                 Date date)

addDateHeader

public static void addDateHeader(Response response,
                                 String name,
                                 String date)
                          throws ParseException
Throws:
ParseException

addDateHeader

public static void addDateHeader(Response response,
                                 String name,
                                 String date,
                                 String format)
                          throws ParseException
Throws:
ParseException

addDateHeader

public static void addDateHeader(Response response,
                                 String name,
                                 String date,
                                 DateFormat format)
                          throws ParseException
Throws:
ParseException

setDateHeader

public static void setDateHeader(Response response,
                                 String name,
                                 long date)

setDateHeader

public static void setDateHeader(Response response,
                                 String name,
                                 Date date)

setDateHeader

public static void setDateHeader(Response response,
                                 String name,
                                 String date)
                          throws ParseException
Throws:
ParseException

setDateHeader

public static void setDateHeader(Response response,
                                 String name,
                                 String date,
                                 String format)
                          throws ParseException
Throws:
ParseException

setDateHeader

public static void setDateHeader(Response response,
                                 String name,
                                 String date,
                                 DateFormat format)
                          throws ParseException
Throws:
ParseException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.