Java Doc for Serve.java in  » Web-Server » Acme-WebServer » Acme » Serve » 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 Server » Acme WebServer » Acme.Serve 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   Acme.Serve.Serve

All known Subclasses:   Acme.Serve.SimpleAcceptor,  Acme.Serve.Main,
Serve
public class Serve implements ServletContext,RequestDispatcher(Code)

Inner Class :public static interface SocketFactory
Inner Class :final static class Identification

Field Summary
final public static  StringARG_ALIASES
    
final public static  StringARG_CGI_PATH
    
final public static  StringARG_LOG_OPTIONS
    
final public static  StringARG_PORT
    
final public static  StringARG_REALMS
    
final public static  StringARG_SERVLETS
    
final public static  StringARG_SESSION_TIMEOUT
    
final public static  StringARG_SOCKET_FACTORY
    
final public static  StringARG_THROTTLES
    
final protected static  intDEF_PORT
    
final protected static  intDEF_SESSION_TIMEOUT
    
protected  Hashtablearguments
    
 sun.misc.BASE64Decoderbase64Dec
    
static  intexpiredIn
    
 StringhostName
    
 intport
    
protected  PathTreeDictionaryrealms
    
protected  PathTreeDictionaryregistry
    
 booleanrunning
    
 HttpSessionContextImplsessions
    
 intuniqer
    

Constructor Summary
public  Serve(Hashtable arguments, PrintStream logStream)
    
public  Serve()
    

Method Summary
public  voidaddDefaultServlets(String cgi)
    
public  voidaddDefaultServlets(String cgi, String throttles)
    
public  voidaddServlet(String urlPat, String className)
    
public  voidaddServlet(String urlPat, String className, Hashtable initParams)
    
public  voidaddServlet(String urlPat, Servlet servlet)
    
public  voidaddServlet(String urlPat, Servlet servlet, Hashtable initParams)
    
protected  ServerSocketcreateServerSocket()
    
 HttpSessioncreateSession()
    
public  voiddestroyAllServlets()
    
public  voidforward(ServletRequest _request, ServletResponse _response)
    
synchronized  StringgenerateSessionId()
    
public  ObjectgetAttribute(String name)
    
public  EnumerationgetAttributeNames()
    
public  ServletContextgetContext(String uripath)
    
public  StringgetInitParameter(String param)
    
public  EnumerationgetInitParameterNames()
    
public  intgetMajorVersion()
    
public  StringgetMimeType(String file)
    
public  intgetMinorVersion()
    
public  RequestDispatchergetNamedDispatcher(String name)
    
public  StringgetRealPath(String path)
    
public  RequestDispatchergetRequestDispatcher(String urlpath)
    
public  URLgetResource(String path)
    
public  InputStreamgetResourceAsStream(String path)
    
public  java.util.SetgetResourcePaths(java.lang.String path)
     Returns a directory-like listing of all the paths to resources within the web application whose longest sub-path matches the supplied path argument.
public  StringgetServerInfo()
    
public  ServletgetServlet(String name)
    
public  java.lang.StringgetServletContextName()
     Returns the name of this web application correponding to this ServletContext as specified in the deployment descriptor for this web application by the display-name element.
public  EnumerationgetServletNames()
    
public  EnumerationgetServlets()
    
 ObjectgetSession(String id)
    
public  voidinclude(ServletRequest _request, ServletResponse _response)
    
 booleanisAccessLogged()
    
 booleanisShowReferer()
    
 booleanisShowUserAgent()
    
public  voidlog(String message)
    
public  voidlog(String message, Throwable throwable)
    
public  voidlog(Exception exception, String message)
    
public static  voidmain(String[] args)
    
public  voidremoveAttribute(String name)
    
 voidremoveSession(String id)
    
public  voidserve()
    
 voidsetAccessLogged()
    
public  voidsetAttribute(String name, Object object)
    
public  voidsetMappingTable(PathTreeDictionary mappingtable)
    
public  voidsetRealms(PathTreeDictionary realms)
    

Field Detail
ARG_ALIASES
final public static String ARG_ALIASES(Code)



ARG_CGI_PATH
final public static String ARG_CGI_PATH(Code)



ARG_LOG_OPTIONS
final public static String ARG_LOG_OPTIONS(Code)



ARG_PORT
final public static String ARG_PORT(Code)



ARG_REALMS
final public static String ARG_REALMS(Code)



ARG_SERVLETS
final public static String ARG_SERVLETS(Code)



ARG_SESSION_TIMEOUT
final public static String ARG_SESSION_TIMEOUT(Code)



ARG_SOCKET_FACTORY
final public static String ARG_SOCKET_FACTORY(Code)



ARG_THROTTLES
final public static String ARG_THROTTLES(Code)



DEF_PORT
final protected static int DEF_PORT(Code)



DEF_SESSION_TIMEOUT
final protected static int DEF_SESSION_TIMEOUT(Code)



arguments
protected Hashtable arguments(Code)



base64Dec
sun.misc.BASE64Decoder base64Dec(Code)



expiredIn
static int expiredIn(Code)



hostName
String hostName(Code)



port
int port(Code)



realms
protected PathTreeDictionary realms(Code)



registry
protected PathTreeDictionary registry(Code)



running
boolean running(Code)



sessions
HttpSessionContextImpl sessions(Code)



uniqer
int uniqer(Code)




Constructor Detail
Serve
public Serve(Hashtable arguments, PrintStream logStream)(Code)



Serve
public Serve()(Code)




Method Detail
addDefaultServlets
public void addDefaultServlets(String cgi)(Code)



addDefaultServlets
public void addDefaultServlets(String cgi, String throttles) throws IOException(Code)



addServlet
public void addServlet(String urlPat, String className)(Code)



addServlet
public void addServlet(String urlPat, String className, Hashtable initParams)(Code)



addServlet
public void addServlet(String urlPat, Servlet servlet)(Code)



addServlet
public void addServlet(String urlPat, Servlet servlet, Hashtable initParams)(Code)



createServerSocket
protected ServerSocket createServerSocket() throws IOException(Code)



createSession
HttpSession createSession()(Code)



destroyAllServlets
public void destroyAllServlets()(Code)



forward
public void forward(ServletRequest _request, ServletResponse _response) throws ServletException, java.io.IOException(Code)



generateSessionId
synchronized String generateSessionId()(Code)



getAttribute
public Object getAttribute(String name)(Code)



getAttributeNames
public Enumeration getAttributeNames()(Code)



getContext
public ServletContext getContext(String uripath)(Code)



getInitParameter
public String getInitParameter(String param)(Code)



getInitParameterNames
public Enumeration getInitParameterNames()(Code)



getMajorVersion
public int getMajorVersion()(Code)



getMimeType
public String getMimeType(String file)(Code)



getMinorVersion
public int getMinorVersion()(Code)



getNamedDispatcher
public RequestDispatcher getNamedDispatcher(String name)(Code)



getRealPath
public String getRealPath(String path)(Code)



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String urlpath)(Code)



getResource
public URL getResource(String path) throws MalformedURLException(Code)



getResourceAsStream
public InputStream getResourceAsStream(String path)(Code)



getResourcePaths
public java.util.Set getResourcePaths(java.lang.String path)(Code)
Returns a directory-like listing of all the paths to resources within the web application whose longest sub-path matches the supplied path argument. Paths indicating subdirectory paths end with a '/'. The returned paths are all relative to the root of the web application and have a leading '/'. For example, for a web application containing

/welcome.html
/catalog/index.html
/catalog/products.html
/catalog/offers/books.html
/catalog/offers/music.html
/customer/login.jsp
/WEB-INF/web.xml
/WEB-INF/classes/com.acme.OrderServlet.class,

getResourcePaths("/") returns {"/welcome.html", "/catalog/", "/customer/", "/WEB-INF/"}
getResourcePaths("/catalog/") returns {"/catalog/index.html", "/catalog/products.html", "/catalog/offers/"}.


Parameters:
  the - - partial path used to match the resources, which must start with a / a Set containing the directory listing, or null if there are no resources in the web application whose path begins with the supplied path.
since:
   Servlet 2.3




getServerInfo
public String getServerInfo()(Code)



getServlet
public Servlet getServlet(String name)(Code)



getServletContextName
public java.lang.String getServletContextName()(Code)
Returns the name of this web application correponding to this ServletContext as specified in the deployment descriptor for this web application by the display-name element. The name of the web application or null if no name has been declared in the deployment descriptor.
since:
   Servlet 2.3



getServletNames
public Enumeration getServletNames()(Code)



getServlets
public Enumeration getServlets()(Code)



getSession
Object getSession(String id)(Code)



include
public void include(ServletRequest _request, ServletResponse _response) throws ServletException, java.io.IOException(Code)



isAccessLogged
boolean isAccessLogged()(Code)



isShowReferer
boolean isShowReferer()(Code)



isShowUserAgent
boolean isShowUserAgent()(Code)



log
public void log(String message)(Code)



log
public void log(String message, Throwable throwable)(Code)



log
public void log(Exception exception, String message)(Code)



main
public static void main(String[] args)(Code)



removeAttribute
public void removeAttribute(String name)(Code)



removeSession
void removeSession(String id)(Code)



serve
public void serve()(Code)



setAccessLogged
void setAccessLogged()(Code)



setAttribute
public void setAttribute(String name, Object object)(Code)



setMappingTable
public void setMappingTable(PathTreeDictionary mappingtable)(Code)



setRealms
public void setRealms(PathTreeDictionary realms)(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.