org.jasig.cas.web.view
Class AbstractSaml10ResponseView

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.view.AbstractView
              extended by org.jasig.cas.web.view.AbstractCasView
                  extended by org.jasig.cas.web.view.AbstractSaml10ResponseView
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.View
Direct Known Subclasses:
Saml10FailureResponseView, Saml10SuccessResponseView

public abstract class AbstractSaml10ResponseView
extends AbstractCasView

Base class for all views that render SAML1 SOAP messages directly to the HTTP response stream.

Since:
3.5.1
Author:
Marvin S. Addison

Field Summary
 
Fields inherited from class org.jasig.cas.web.view.AbstractCasView
log
 
Fields inherited from class org.springframework.web.servlet.view.AbstractView
DEFAULT_CONTENT_TYPE
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Fields inherited from interface org.springframework.web.servlet.View
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE
 
Constructor Summary
protected AbstractSaml10ResponseView()
           
 
Method Summary
protected  String generateId()
           
protected
<T extends org.opensaml.common.SAMLObject>
T
newSamlObject(Class<T> objectType)
           
protected  org.opensaml.saml1.core.Status newStatus(QName codeValue, String statusMessage)
           
protected abstract  void prepareResponse(org.opensaml.saml1.core.Response response, Map<String,Object> model)
          Subclasses must implement this method by adding child elements (status, assertion, etc) to the given empty SAML 1 response message.
protected  void renderMergedOutputModel(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void setEncoding(String encoding)
          Sets the character encoding in the HTTP response.
 
Methods inherited from class org.jasig.cas.web.view.AbstractCasView
getAssertionFrom
 
Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, toString, writeToResponse
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractSaml10ResponseView

protected AbstractSaml10ResponseView()
Method Detail

setEncoding

public void setEncoding(String encoding)
Sets the character encoding in the HTTP response.

Parameters:
encoding - Response character encoding.

renderMergedOutputModel

protected void renderMergedOutputModel(Map<String,Object> model,
                                       javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response)
                                throws Exception
Specified by:
renderMergedOutputModel in class org.springframework.web.servlet.view.AbstractView
Throws:
Exception

prepareResponse

protected abstract void prepareResponse(org.opensaml.saml1.core.Response response,
                                        Map<String,Object> model)
Subclasses must implement this method by adding child elements (status, assertion, etc) to the given empty SAML 1 response message. Impelmenters need not be concerned with error handling.

Parameters:
response - SAML 1 response message to be filled.
model - Spring MVC model map containing data needed to prepare response.

generateId

protected final String generateId()

newSamlObject

protected final <T extends org.opensaml.common.SAMLObject> T newSamlObject(Class<T> objectType)

newStatus

protected final org.opensaml.saml1.core.Status newStatus(QName codeValue,
                                                         String statusMessage)


Copyright © 2004-2013 Jasig. All Rights Reserved.