Java Doc for RaveServletContext.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » jsfsupport » container » 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 » IDE Netbeans » visualweb.api.designer » org.netbeans.modules.visualweb.jsfsupport.container 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.jsfsupport.container.RaveServletContext

RaveServletContext
public class RaveServletContext implements ServletContext(Code)

Provides a ServletContext (v 2.3) object for design-time use


author:
   Robert Brewin
version:
   1.0



Constructor Summary
public  RaveServletContext()
    

Method Summary
public  voidaddInitParameter(String name, String value)
    
public  ObjectgetAttribute(String name)
     Returns the servlet container attribute with the given name, or null if there is no attribute by that name.
public  EnumerationgetAttributeNames()
     Returns an Enumeration containing the attribute names available within this servlet context.
public  ServletContextgetContext(String uripath)
     Returns a ServletContext object that corresponds to a specified URL on the server.
public  StringgetContextPath()
    
public  StringgetInitParameter(String name)
     Returns a String containing the value of the named context-wide initialization parameter, or null if the parameter does not exist.
public  EnumerationgetInitParameterNames()
     Returns the names of the context's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the context has no initialization parameters.
public  intgetMajorVersion()
    
public  StringgetMimeType(String path)
     Returns the MIME type of the specified file, or null if the MIME type is not known. TODO: Return a valid MIME type...
public  intgetMinorVersion()
    
public  RequestDispatchergetNamedDispatcher(String name)
     Returns a RequestDispatcher object that acts as a wrapper for the named servlet.
public  StringgetRealPath(String path)
     Returns a String containing the real path for a given virtual path. This method will attempt to find the resource using the current thread's context class loader.
public  RequestDispatchergetRequestDispatcher(String path)
     Returns a RequestDispatcher object that acts as a wrapper for the named servlet.
public  URLgetResource(String resource)
     Returns a URL to the resource that is mapped to a specified path.
public  InputStreamgetResourceAsStream(String path)
     Returns a resource as an InputStream that is mapped to a specified path.
public  SetgetResourcePaths(String path)
     Returns a directory-like listing of all the paths to resources.
public  StringgetServerInfo()
     Returns the name and version of the servlet container on which the servlet is running.
public  ServletgetServlet(String name)
     Deprecated in Servlet APIs, included for compliation purposes only.
public  StringgetServletContextName()
    
public  EnumerationgetServletNames()
     Deprecated in Servlet APIs, included for compliation purposes only.
public  EnumerationgetServlets()
     Deprecated in Servlet APIs, included for compliation purposes only.
public  voidlog(String message)
     Writes the specified message to a servlet log file.
public  voidlog(Exception exception, String message)
     Deprecated in Servlet APIs, included for compliation purposes only.
public  voidlog(String message, Throwable exception)
     Writes the specified message and stack trace to a servlet log file.
public  voidremoveAttribute(String name)
    
public  voidsetAttribute(String name, Object value)
     Binds an object to a given attribute name in this servlet context.


Constructor Detail
RaveServletContext
public RaveServletContext()(Code)
Default constructor for a RaveServletContext object




Method Detail
addInitParameter
public void addInitParameter(String name, String value)(Code)
Add an initialization parameter
Parameters:
  name - - a String specifying the name of the parameter
Parameters:
  value - - a String representing the value for this parameter



getAttribute
public Object getAttribute(String name)(Code)
Returns the servlet container attribute with the given name, or null if there is no attribute by that name. An attribute allows a servlet container to give the servlet additional information not already provided by this interface. See your server documentation for information about its attributes. A list of supported attributes can be retrieved using getAttributeNames . The attribute is returned as a java.lang.Object or some subclass. Attribute names should follow the same convention as package names. The Java Servlet API specification reserves names matching java.*, javax.*, and sun.*.
Parameters:
  name - - a String specifying the name of the attribute an Object containing the value of the attribute, or nullif no attribute exists matching the given name



getAttributeNames
public Enumeration getAttributeNames()(Code)
Returns an Enumeration containing the attribute names available within this servlet context. Use the getAttribute(java.lang.String) method with an attribute name to get the value of an attribute. an Enumeration of attribute names



getContext
public ServletContext getContext(String uripath)(Code)
Returns a ServletContext object that corresponds to a specified URL on the server. In the Mock environment, this method throws an UnsupportedOperationException as there is only one context available
Parameters:
  uripath - - a String specifying the context path ofanother web application in the container.



getContextPath
public String getContextPath()(Code)



getInitParameter
public String getInitParameter(String name)(Code)
Returns a String containing the value of the named context-wide initialization parameter, or null if the parameter does not exist.
Parameters:
  name - - a String containing the name of the parameter whose value isrequested a String containing at least the servlet container nameand version number



getInitParameterNames
public Enumeration getInitParameterNames()(Code)
Returns the names of the context's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the context has no initialization parameters. Enumeration of String objects containingthe names of the context's initialization parameters



getMajorVersion
public int getMajorVersion()(Code)
Returns the major version of the Java Servlet API that this servlet container supports 2



getMimeType
public String getMimeType(String path)(Code)
Returns the MIME type of the specified file, or null if the MIME type is not known. TODO: Return a valid MIME type... at present, this method throws an UnsupportedOperationException
Parameters:
  path - - a String specifying the name of a file a String specifying the file's MIME type



getMinorVersion
public int getMinorVersion()(Code)
Returns the minor version of the Java Servlet API that this servlet container supports 3



getNamedDispatcher
public RequestDispatcher getNamedDispatcher(String name)(Code)
Returns a RequestDispatcher object that acts as a wrapper for the named servlet. This method is unsupported in the Mock environment and returns an UnsupportedOperationException



getRealPath
public String getRealPath(String path)(Code)
Returns a String containing the real path for a given virtual path. This method will attempt to find the resource using the current thread's context class loader. This method will work only when the path specified is a file path.



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)(Code)
Returns a RequestDispatcher object that acts as a wrapper for the named servlet. This method is unsupported in the Mock environment and returns an UnsupportedOperationException



getResource
public URL getResource(String resource) throws MalformedURLException(Code)
Returns a URL to the resource that is mapped to a specified path. This method returns urls for specific resources available in the Mock jar



getResourceAsStream
public InputStream getResourceAsStream(String path)(Code)
Returns a resource as an InputStream that is mapped to a specified path. This method returns streams for specific resources available in the Mock jar



getResourcePaths
public Set getResourcePaths(String path)(Code)
Returns a directory-like listing of all the paths to resources. This method is unsupported in the Mock environment and returns null



getServerInfo
public String getServerInfo()(Code)
Returns the name and version of the servlet container on which the servlet is running.



getServlet
public Servlet getServlet(String name) throws ServletException(Code)
Deprecated in Servlet APIs, included for compliation purposes only. This method is unsupported in the Mock environment and returns an UnsupportedOperationException



getServletContextName
public String getServletContextName()(Code)
Returns the name of this web application associated with this context



getServletNames
public Enumeration getServletNames()(Code)
Deprecated in Servlet APIs, included for compliation purposes only. This method is unsupported in the Mock environment and returns an UnsupportedOperationException



getServlets
public Enumeration getServlets()(Code)
Deprecated in Servlet APIs, included for compliation purposes only. This method is unsupported in the Mock environment and returns an UnsupportedOperationException



log
public void log(String message)(Code)
Writes the specified message to a servlet log file. Currently, his method is unsupported in the Mock environment and returns an UnsupportedOperationException



log
public void log(Exception exception, String message)(Code)
Deprecated in Servlet APIs, included for compliation purposes only. This method is unsupported in the Mock environment and returns an UnsupportedOperationException



log
public void log(String message, Throwable exception)(Code)
Writes the specified message and stack trace to a servlet log file. Currently, his method is unsupported in the Mock environment and returns an UnsupportedOperationException



removeAttribute
public void removeAttribute(String name)(Code)
Removes the attribute with the given name from the servlet context
Parameters:
  name - - a String which contains the name of the attribute to remove



setAttribute
public void setAttribute(String name, Object value)(Code)
Binds an object to a given attribute name in this servlet context. If the name specified is already used for an attribute, this method will replace the attribute with the new to the new attribute.
Parameters:
  name - - a String specifying the name of the attribute
Parameters:
  object - - an Object representing the attribute to be bound



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.