org.apache.myfaces.custom.captcha
Class CAPTCHARenderer
java.lang.Object
javax.faces.render.Renderer
org.apache.myfaces.custom.captcha.CAPTCHARenderer
- All Implemented Interfaces:
- ResourceLoader
public class CAPTCHARenderer
- extends javax.faces.render.Renderer
- implements ResourceLoader
- Since:
- 1.1.7
- Author:
- Hazem Saleh
Method Summary |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected void |
renderCAPTCHA(javax.faces.context.FacesContext facesContext)
|
void |
serveResource(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String resourceUri)
Called by AddResource to render external resource data |
Methods inherited from class javax.faces.render.Renderer |
convertClientId, decode, encodeChildren, getConvertedValue, getRendersChildren |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CAPTCHARenderer
public CAPTCHARenderer()
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
- Overrides:
encodeBegin
in class javax.faces.render.Renderer
- Throws:
IOException
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
- Overrides:
encodeEnd
in class javax.faces.render.Renderer
- Throws:
IOException
serveResource
public void serveResource(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String resourceUri)
throws IOException
- Description copied from interface:
ResourceLoader
- Called by AddResource to render external resource data
- Specified by:
serveResource
in interface ResourceLoader
- Parameters:
servletContext
- TODOrequest
- the requestresponse
- the response to write the resource content toresourceUri
- contains the uri part after the uri which
is used to identify the resource loader
- Throws:
IOException
renderCAPTCHA
protected void renderCAPTCHA(javax.faces.context.FacesContext facesContext)
throws IOException
- Throws:
IOException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.