站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Java Platform, Enterprise Edition v1.4 API Specifications

Deprecated List (Java 2 Platform Ent. Ed. v1.4) - Java Platform, Enterprise Edition v1.4 API Specifications

JavaTM 2 Platform
Ent. Ed. v1.4

Deprecated API

Deprecated Classes
javax.management.DefaultLoaderRepository
          Use MBeanServer.getClassLoaderRepository()} instead. 
javax.management.loading.DefaultLoaderRepository
          Use MBeanServer.getClassLoaderRepository()} instead. 
javax.servlet.http.HttpUtils
          As of Java(tm) Servlet API 2.3. These methods were only useful with the default encoding and have been moved to the request interfaces. 
javax.xml.soap.SOAPElementFactory
          - Use javax.xml.soap.SOAPFactory for creating SOAPElements. 
javax.management.timer.TimerAlarmClockNotification
          This class is of no use to user code. It is retained purely for compatibility reasons. 
 

Deprecated Interfaces
javax.resource.spi.security.GenericCredential
          The preferred way to represent generic credential information is via the org.ietf.jgss.GSSCredential interface in J2SE Version 1.4, which provides similar functionality. 
javax.servlet.http.HttpSessionContext
          As of Java(tm) Servlet API 2.1 for security reasons, with no replacement. This interface will be removed in a future version of this API. 
javax.servlet.SingleThreadModel
          As of Java Servlet API 2.4, with no direct replacement. 
 

Deprecated Fields
javax.management.monitor.Monitor.alreadyNotified
          equivalent to Monitor.alreadyNotifieds[0]. 
javax.management.monitor.Monitor.dbgTag
          No replacement. 
javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_TAG
          As of Java JSP API 1.2, use BodyTag.EVAL_BODY_BUFFERED or IterationTag.EVAL_BODY_AGAIN. 
 

Deprecated Methods
javax.xml.soap.SOAPElementFactory.create(Name)
          Use javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name) instead 
javax.xml.soap.SOAPElementFactory.create(String)
          Use javax.xml.soap.SOAPFactory.createElement(String localName) instead 
javax.xml.soap.SOAPElementFactory.create(String, String, String)
          Use javax.xml.soap.SOAPFactory.createElement(String localName, String prefix, String uri) instead 
javax.management.MBeanServer.deserialize(ObjectName, byte[])
          Use getClassLoaderFor to obtain the appropriate class loader for deserialization. 
javax.management.MBeanServer.deserialize(String, byte[])
          Use MBeanServer.getClassLoaderRepository() to obtain the class loader repository and use it to deserialize. 
javax.management.MBeanServer.deserialize(String, ObjectName, byte[])
          Use getClassLoader to obtain the class loader for deserialization. 
javax.servlet.http.HttpServletResponse.encodeRedirectUrl(String)
          As of version 2.1, use encodeRedirectURL(String url) instead 
javax.servlet.http.HttpServletResponse.encodeUrl(String)
          As of version 2.1, use encodeURL(String url) instead 
javax.ejb.EJBContext.getCallerIdentity()
          Use Principal getCallerPrincipal() instead. 
javax.management.monitor.StringMonitor.getDerivedGauge()
          As of JMX 1.2, replaced by StringMonitor.getDerivedGauge(ObjectName) 
javax.management.monitor.StringMonitorMBean.getDerivedGauge()
          As of JMX 1.2, replaced by StringMonitorMBean.getDerivedGauge(ObjectName) 
javax.management.monitor.GaugeMonitor.getDerivedGauge()
          As of JMX 1.2, replaced by GaugeMonitor.getDerivedGauge(ObjectName) 
javax.management.monitor.GaugeMonitorMBean.getDerivedGauge()
          As of JMX 1.2, replaced by GaugeMonitorMBean.getDerivedGauge(ObjectName) 
javax.management.monitor.CounterMonitor.getDerivedGauge()
          As of JMX 1.2, replaced by CounterMonitor.getDerivedGauge(ObjectName) 
javax.management.monitor.CounterMonitorMBean.getDerivedGauge()
          As of JMX 1.2, replaced by CounterMonitorMBean.getDerivedGauge(ObjectName) 
javax.management.monitor.StringMonitor.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by StringMonitor.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.monitor.StringMonitorMBean.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by StringMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.monitor.GaugeMonitor.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by GaugeMonitor.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.monitor.GaugeMonitorMBean.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by GaugeMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by CounterMonitor.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by CounterMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) 
javax.ejb.EJBContext.getEnvironment()
          Use the JNDI naming context java:comp/env to access enterprise bean's environment. 
javax.servlet.http.HttpSessionContext.getIds()
          As of Java Servlet API 2.1 with no replacement. This method must return an empty Enumeration and will be removed in a future version of this API. 
javax.resource.ResourceException.getLinkedException()
          J2SE release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer to getCause and initCause methods of the java.lang.Throwable class.. 
javax.resource.cci.ResourceWarning.getLinkedWarning()
          J2SE release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer to getCause and initCause methods of the java.lang.Throwable class. 
javax.enterprise.deploy.model.DeployableObject.getModuleDTDVersion()
          As of version 1.1 replaced by DDBeanRoot.getDDBeanRootVersion() 
javax.enterprise.deploy.model.DDBeanRoot.getModuleDTDVersion()
          As of version 1.1 replaced by DDBeanRoot.getDDBeanRootVersion() 
javax.management.monitor.Monitor.getObservedObject()
          As of JMX 1.2, replaced by Monitor.getObservedObjects() 
javax.management.monitor.MonitorMBean.getObservedObject()
          As of JMX 1.2, replaced by MonitorMBean.getObservedObjects() 
javax.servlet.ServletRequest.getRealPath(String)
          As of Version 2.1 of the Java Servlet API, use ServletContext.getRealPath(java.lang.String) instead. 
javax.servlet.UnavailableException.getServlet()
          As of Java Servlet API 2.2, with no replacement. Returns the servlet that is reporting its unavailability. 
javax.servlet.ServletContext.getServlet(String)
          As of Java Servlet API 2.1, with no direct replacement.

This method was originally defined to retrieve a servlet from a ServletContext. In this version, this method always returns null and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java Servlet API.

In lieu of this method, servlets can share information using the ServletContext class and can perform shared business logic by invoking methods on common non-servlet classes. 

javax.servlet.ServletContext.getServletNames()
          As of Java Servlet API 2.1, with no replacement.

This method was originally defined to return an Enumeration of all the servlet names known to this context. In this version, this method always returns an empty Enumeration and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java Servlet API. 

javax.servlet.ServletContext.getServlets()
          As of Java Servlet API 2.0, with no replacement.

This method was originally defined to return an Enumeration of all the servlets known to this servlet context. In this version, this method always returns an empty enumeration and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java Servlet API. 

javax.servlet.http.HttpSessionContext.getSession(String)
          As of Java Servlet API 2.1 with no replacement. This method must return null and will be removed in a future version of this API. 
javax.servlet.http.HttpSession.getSessionContext()
          As of Version 2.1, this method is deprecated and has no replacement. It will be removed in a future version of the Java Servlet API. 
javax.management.monitor.CounterMonitor.getThreshold()
          As of JMX 1.2, replaced by CounterMonitor.getThreshold(ObjectName) 
javax.management.monitor.CounterMonitorMBean.getThreshold()
          As of JMX 1.2, replaced by CounterMonitorMBean.getThreshold(ObjectName) 
javax.servlet.http.HttpSession.getValue(String)
          As of Version 2.2, this method is replaced by HttpSession.getAttribute(java.lang.String). 
javax.servlet.http.HttpSession.getValueNames()
          As of Version 2.2, this method is replaced by HttpSession.getAttributeNames() 
javax.ejb.EJBContext.isCallerInRole(Identity)
          Use boolean isCallerInRole(String roleName) instead. 
javax.servlet.http.HttpServletRequest.isRequestedSessionIdFromUrl()
          As of Version 2.1 of the Java Servlet API, use HttpServletRequest.isRequestedSessionIdFromURL() instead. 
javax.servlet.ServletContext.log(Exception, String)
          As of Java Servlet API 2.1, use ServletContext.log(String message, Throwable throwable) instead.

This method was originally defined to write an exception's stack trace and an explanatory error message to the servlet log file. 

javax.servlet.http.HttpSession.putValue(String, Object)
          As of Version 2.2, this method is replaced by HttpSession.setAttribute(java.lang.String, java.lang.Object) 
javax.servlet.http.HttpSession.removeValue(String)
          As of Version 2.2, this method is replaced by HttpSession.removeAttribute(java.lang.String) 
javax.resource.ResourceException.setLinkedException(Exception)
          J2SE release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer to getCause and initCause methods of the java.lang.Throwable class. 
javax.resource.cci.ResourceWarning.setLinkedWarning(ResourceWarning)
          J2SE release 1.4 supports a chained exception facility that allows any throwable to know about another throwable, if any, that caused it to get thrown. Refer to getCause and initCause methods of the java.lang.Throwable class. 
javax.management.ValueExp.setMBeanServer(MBeanServer)
          This method is not needed because a ValueExp can access the MBean server in which it is being evaluated by using QueryEval.getMBeanServer(). 
javax.management.monitor.Monitor.setObservedObject(ObjectName)
          As of JMX 1.2, replaced by Monitor.addObservedObject(javax.management.ObjectName) 
javax.management.monitor.MonitorMBean.setObservedObject(ObjectName)
          As of JMX 1.2, replaced by MonitorMBean.addObservedObject(javax.management.ObjectName) 
javax.servlet.http.HttpServletResponse.setStatus(int, String)
          As of version 2.1, due to ambiguous meaning of the message parameter. To set a status code use setStatus(int), to send an error with a description use sendError(int, String). Sets the status code and message for this response. 
javax.management.monitor.CounterMonitor.setThreshold(Number)
          As of JMX 1.2, replaced by CounterMonitor.setInitThreshold(java.lang.Number) 
javax.management.monitor.CounterMonitorMBean.setThreshold(Number)
          As of JMX 1.2, replaced by CounterMonitorMBean.setInitThreshold(java.lang.Number) 
 

Deprecated Constructors
javax.management.AttributeValueExp()
          An instance created with this constructor cannot be used in a query. 
javax.servlet.UnavailableException(int, Servlet, String)
          As of Java Servlet API 2.2, use UnavailableException.UnavailableException(String, int) instead. 
javax.servlet.UnavailableException(Servlet, String)
          As of Java Servlet API 2.2, use UnavailableException.UnavailableException(String) instead. 
 


JavaTM 2 Platform
Ent. Ed. v1.4

Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.