| java.lang.Object Acme.Serve.Serve
All known Subclasses: Acme.Serve.SimpleAcceptor, Acme.Serve.Main,
Inner Class :public static interface SocketFactory | |
Inner Class :final static class Identification | |
Method Summary | |
public void | addDefaultServlets(String cgi) | public void | addDefaultServlets(String cgi, String throttles) | public void | addServlet(String urlPat, String className) | public void | addServlet(String urlPat, String className, Hashtable initParams) | public void | addServlet(String urlPat, Servlet servlet) | public void | addServlet(String urlPat, Servlet servlet, Hashtable initParams) | protected ServerSocket | createServerSocket() | HttpSession | createSession() | public void | destroyAllServlets() | public void | forward(ServletRequest _request, ServletResponse _response) | synchronized String | generateSessionId() | public Object | getAttribute(String name) | public Enumeration | getAttributeNames() | public ServletContext | getContext(String uripath) | public String | getInitParameter(String param) | public Enumeration | getInitParameterNames() | public int | getMajorVersion() | public String | getMimeType(String file) | public int | getMinorVersion() | public RequestDispatcher | getNamedDispatcher(String name) | public String | getRealPath(String path) | public RequestDispatcher | getRequestDispatcher(String urlpath) | public URL | getResource(String path) | public InputStream | getResourceAsStream(String path) | public java.util.Set | getResourcePaths(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 String | getServerInfo() | public Servlet | getServlet(String name) | public java.lang.String | getServletContextName() 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 Enumeration | getServletNames() | public Enumeration | getServlets() | Object | getSession(String id) | public void | include(ServletRequest _request, ServletResponse _response) | boolean | isAccessLogged() | boolean | isShowReferer() | boolean | isShowUserAgent() | public void | log(String message) | public void | log(String message, Throwable throwable) | public void | log(Exception exception, String message) | public static void | main(String[] args) | public void | removeAttribute(String name) | void | removeSession(String id) | public void | serve() | void | setAccessLogged() | public void | setAttribute(String name, Object object) | public void | setMappingTable(PathTreeDictionary mappingtable) | public void | setRealms(PathTreeDictionary realms) |
ARG_LOG_OPTIONS | final public static String ARG_LOG_OPTIONS(Code) | | |
ARG_SESSION_TIMEOUT | final public static String ARG_SESSION_TIMEOUT(Code) | | |
ARG_SOCKET_FACTORY | final public static String ARG_SOCKET_FACTORY(Code) | | |
DEF_PORT | final protected static int DEF_PORT(Code) | | |
DEF_SESSION_TIMEOUT | final protected static int DEF_SESSION_TIMEOUT(Code) | | |
base64Dec | sun.misc.BASE64Decoder base64Dec(Code) | | |
expiredIn | static int expiredIn(Code) | | |
realms | protected PathTreeDictionary realms(Code) | | |
registry | protected PathTreeDictionary registry(Code) | | |
sessions | HttpSessionContextImpl sessions(Code) | | |
addDefaultServlets | public void addDefaultServlets(String cgi)(Code) | | |
destroyAllServlets | public void destroyAllServlets()(Code) | | |
generateSessionId | synchronized String generateSessionId()(Code) | | |
getMajorVersion | public int getMajorVersion()(Code) | | |
getMinorVersion | public int getMinorVersion()(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 |
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 |
isAccessLogged | boolean isAccessLogged()(Code) | | |
isShowReferer | boolean isShowReferer()(Code) | | |
isShowUserAgent | boolean isShowUserAgent()(Code) | | |
removeAttribute | public void removeAttribute(String name)(Code) | | |
serve | public void serve()(Code) | | |
setAccessLogged | void setAccessLogged()(Code) | | |
setMappingTable | public void setMappingTable(PathTreeDictionary mappingtable)(Code) | | |
setRealms | public void setRealms(PathTreeDictionary realms)(Code) | | |
|
|