WindowActionResponse Interface

com.bea.portlet.ext
WindowActionResponse Interface

public interface WindowActionResponse

    extends ActionResponse

This interface extends javax.portlet.ActionResponse to provide additional convenience methods.

Portlets deployed on WebLogic Portlet Container can cast javax.portlet.ActionResponse objects to this type to access these additional methods.

Related Topics

ActionResponse


All Superinterfaces
ActionResponse, PortletResponse

Method Summary

public void
addCookie(Cookie cookie)

Adds a specified cookie to the response.

public void
addDateHeader(String name, long date)

Adds a response header with the given name and date value.

public void
addHeader(String name, String value)

Adds a response header with the given name and value.

public void
addIntHeader(String name, int value)

Adds a response header with the given name and integer value.

public boolean
containsHeader(String name)

Returns a boolean indicating whether the named response header has already been set.

public void
setDateHeader(String name, long date)

Sets a response header with the given name and date value.

public void
setHeader(String name, String value)

Sets a response header with the given name and value.

public void
setIntHeader(String name, int value)

Sets a response header with the given name and integer value.

 
Methods from interface javax.portlet.ActionResponse
sendRedirect, setPortletMode, setRenderParameter, setRenderParameter, setRenderParameters, setWindowState
 
Methods from interface javax.portlet.PortletResponse
addProperty, encodeURL, setProperty
   

Method Detail

addCookie(Cookie) Method

public void addCookie(Cookie cookie)

Adds a specified cookie to the response.

Parameters

cookie
cookie

Related Topics

HttpServletResponse.addCookie(Cookie)


addDateHeader(String, long) Method

public void addDateHeader(String name, 
                          long date)

Adds a response header with the given name and date value.

Parameters

name
name
date
date

Related Topics

HttpServletResponse.addDateHeader(String, long)


addHeader(String, String) Method

public void addHeader(String name, 
                      String value)

Adds a response header with the given name and value.

Parameters

name
name
value
value

Related Topics

HttpServletResponse.addHeader(String, String)


addIntHeader(String, int) Method

public void addIntHeader(String name, 
                         int value)

Adds a response header with the given name and integer value.

Parameters

name
name
value
value

Related Topics

HttpServletResponse.addIntHeader(String, int)


containsHeader(String) Method

public boolean containsHeader(String name)

Returns a boolean indicating whether the named response header has already been set.

A Cookie header that has been added to the WindowActionResponse should be searched for by using the name of the Cookie, not "Set-Cookie" (the name of a Cookie header) because the Cookie header is not converted into a String value for a "Set-Cookie" header until it is propagated to the inner response.

Parameters

name
name

Returns

boolean

setDateHeader(String, long) Method

public void setDateHeader(String name, 
                          long date)

Sets a response header with the given name and date value.

Parameters

name
name
date
date

Related Topics

HttpServletResponse.setDateHeader(String, long)


setHeader(String, String) Method

public void setHeader(String name, 
                      String value)

Sets a response header with the given name and value.

Parameters

name
name
value
value

Related Topics

HttpServletResponse.setHeader(String, String)


setIntHeader(String, int) Method

public void setIntHeader(String name, 
                         int value)

Sets a response header with the given name and integer value.

Parameters

name
name
value
value

Related Topics

HttpServletResponse.setIntHeader(String, int)