Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Instrukcja Użytkownika Strona 73

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 124
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 72
Clarifications for Using Methods
Chapter 7 API Clarifications 73
HttpServlet.service
public void service(ServletRequest req, ServletResponse res) throws
ServletException, java.io.IOException
This method dispatches client requests to the protected service method.
Clarification
Servlets may create additional threads to handle their service logic. However, the
API functions exposed by these objects must be accessed by either the request
handling thread or one of the threads the servlet created, but not by both
simultaneously.
ServletContext.getAttribute
public java.lang.Object getAttribute(java.lang.String name)
Returns the servlet container attribute with the given name, or null if there is no
attribute by that name.
Clarification
To obtain the context class loader (a java.lang.ClassLoader object), use the
com.iplanet.server.http.servlet.classloader attribute. To obtain the
context class loader’s classpath (a
java.lang.String object), use the
com.iplanet.server.http.servlet.classpath attribute.To obtain the context
class loader’s reload interval (a
java.lang.Integer object), use the
com.iplanet.server.http.servlet.reload-interval attribute.
ServletRequest.setAttribute
public void setAttribute(java.lang.String name, java.lang.Object o)
Stores an attribute in this request. Attributes are reset between requests. This
method is most often used in conjunction with
RequestDispatcher.
Clarification
You can set the com.iplanet.server.http.servlet.parameterEncoding
attribute in the request object to allow the
getParameter method to know the
encoding of the parameters it extracts.
Przeglądanie stron 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 123 124

Komentarze do niniejszej Instrukcji

Brak uwag