Java Doc for AbstractResponse.java in  » Web-Framework » rife-1.6.1 » com » uwyn » rife » engine » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » rife 1.6.1 » com.uwyn.rife.engine 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.uwyn.rife.engine.AbstractResponse

All known Subclasses:   com.uwyn.rife.test.MockResponse,  com.uwyn.rife.servlet.HttpResponse,
AbstractResponse
abstract public class AbstractResponse implements Response(Code)
This abstract class implements parts of the Response interface to provide behaviour that is specific to RIFE.

Additional abstract methods have been provided to integrate with the concrete back-end classes that extend AbstractResponse.
author:
   Geert Bevin (gbevin[remove] at uwyn dot com)
version:
   $Revision: 3634 $
since:
   1.1




Constructor Summary
protected  AbstractResponse(Request request, boolean embedded)
     Constructor that needs to be called by all the constructors of the extending classes.

Method Summary
abstract protected  String_getCharacterEncoding()
     This method needs to be implemented by the extending back-end class and will be called by AbstractResponse during the RIFE-specific additional behaviour.
abstract protected  OutputStream_getOutputStream()
     This method needs to be implemented by the extending back-end class and will be called by AbstractResponse during the RIFE-specific additional behaviour.
abstract protected  void_sendRedirect(String location)
     This method needs to be implemented by the extending back-end class and will be called by AbstractResponse during the RIFE-specific additional behaviour.
abstract protected  void_setContentLength(int length)
     This method needs to be implemented by the extending back-end class and will be called by AbstractResponse during the RIFE-specific additional behaviour.
abstract protected  void_setContentType(String contentType)
     This method needs to be implemented by the extending back-end class and will be called by AbstractResponse during the RIFE-specific additional behaviour.
public  voidclearBuffer()
    
public  voidclose()
    
public  voidenableTextBuffer(boolean enabled)
    
public  voidflush()
    
public  StringgetCharacterEncoding()
    
public  StringgetContentType()
    
public  ArrayList<CharSequence>getEmbeddedContent()
    
public  ElementSupportgetLastElement()
     Retrieves the last element that has been processed with this response.
public  OutputStreamgetOutputStream()
    
public  RequestgetRequest()
     Retrieves the request that is associated with this response.
public  booleanisContentTypeSet()
    
public  booleanisEmbedded()
    
public  booleanisTextBufferEnabled()
    
public  voidprint(Template template)
    
public  voidprint(Collection<CharSequence> deferredContent)
    
public  voidprint(Object value)
    
public  voidsendRedirect(String location)
    
public  voidsetContentLength(int length)
    
public  voidsetContentType(String contentType)
    
public  voidsetLastElement(ElementSupport element)
    


Constructor Detail
AbstractResponse
protected AbstractResponse(Request request, boolean embedded)(Code)
Constructor that needs to be called by all the constructors of the extending classes.
Parameters:
  request - the Request that is associated with thisresponse
Parameters:
  embedded - true if the response is embedded; or

false otherwise
since:
   1.1





Method Detail
_getCharacterEncoding
abstract protected String _getCharacterEncoding()(Code)
This method needs to be implemented by the extending back-end class and will be called by AbstractResponse during the RIFE-specific additional behaviour. It behaves exactly like its Response.getCharacterEncoding counter-part in the Response interface .
See Also:   Response.getCharacterEncoding
since:
   1.1



_getOutputStream
abstract protected OutputStream _getOutputStream() throws IOException(Code)
This method needs to be implemented by the extending back-end class and will be called by AbstractResponse during the RIFE-specific additional behaviour. It behaves exactly like its Response.getOutputStream counter-part in the Request interface .
See Also:   Response.getOutputStream
since:
   1.1



_sendRedirect
abstract protected void _sendRedirect(String location)(Code)
This method needs to be implemented by the extending back-end class and will be called by AbstractResponse during the RIFE-specific additional behaviour. It behaves exactly like its Response.sendRedirect(String) counter-part in the Response interface .
See Also:   Response.sendRedirect(String)
since:
   1.1



_setContentLength
abstract protected void _setContentLength(int length)(Code)
This method needs to be implemented by the extending back-end class and will be called by AbstractResponse during the RIFE-specific additional behaviour. It behaves exactly like its Response.setContentLength(int) counter-part in the Response interface .
See Also:   Response.setContentLength(int)
since:
   1.1



_setContentType
abstract protected void _setContentType(String contentType)(Code)
This method needs to be implemented by the extending back-end class and will be called by AbstractResponse during the RIFE-specific additional behaviour. It behaves exactly like its Response.setContentType(String) counter-part in the Response interface .
See Also:   Response.setContentType(String)
since:
   1.1



clearBuffer
public void clearBuffer()(Code)



close
public void close() throws EngineException(Code)



enableTextBuffer
public void enableTextBuffer(boolean enabled)(Code)



flush
public void flush() throws EngineException(Code)



getCharacterEncoding
public String getCharacterEncoding()(Code)



getContentType
public String getContentType()(Code)



getEmbeddedContent
public ArrayList<CharSequence> getEmbeddedContent()(Code)



getLastElement
public ElementSupport getLastElement()(Code)
Retrieves the last element that has been processed with this response. the last processed element
since:
   1.1



getOutputStream
public OutputStream getOutputStream() throws EngineException(Code)



getRequest
public Request getRequest()(Code)
Retrieves the request that is associated with this response. the associated request
since:
   1.1



isContentTypeSet
public boolean isContentTypeSet()(Code)



isEmbedded
public boolean isEmbedded()(Code)



isTextBufferEnabled
public boolean isTextBufferEnabled()(Code)



print
public void print(Template template) throws EngineException(Code)



print
public void print(Collection<CharSequence> deferredContent) throws EngineException(Code)



print
public void print(Object value) throws EngineException(Code)



sendRedirect
public void sendRedirect(String location) throws EngineException(Code)



setContentLength
public void setContentLength(int length) throws EngineException(Code)



setContentType
public void setContentType(String contentType)(Code)



setLastElement
public void setLastElement(ElementSupport element)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.