Knopflerfish OSGi 5.2.0

Deprecated API


Contents
Deprecated Interfaces
org.osgi.framework.Configurable
          As of 1.2. Please use Configuration Admin service. 
org.osgi.framework.hooks.service.EventHook
          As of 1.1. Replaced by EventListenerHook. 
org.osgi.service.packageadmin.ExportedPackage
          The PackageAdmin service has been replaced by the org.osgi.framework.wiring package. 
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. 
org.osgi.service.packageadmin.PackageAdmin
          This service has been replaced by the org.osgi.framework.wiring package. 
org.osgi.service.packageadmin.RequiredBundle
          The PackageAdmin service has been replaced by the org.osgi.framework.wiring package. 
javax.servlet.SingleThreadModel
          As of Java Servlet API 2.4, with no direct replacement. 
org.osgi.service.startlevel.StartLevel
          This service has been replaced by the org.osgi.framework.startlevel package. 
 

Deprecated Classes
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. 
org.apache.commons.logging.LogSource
          Use LogFactory instead - The default factory implementation performs exactly the same algorithm as this class did 
 

Deprecated Fields
org.osgi.service.metatype.AttributeDefinition.BIGDECIMAL
          As of 1.1. 
org.osgi.service.metatype.AttributeDefinition.BIGINTEGER
          As of 1.1. 
org.osgi.framework.Constants.BUNDLE_REQUIREDEXECUTIONENVIRONMENT
          As of 1.6. Replaced by the osgi.ee capability. 
org.osgi.service.event.EventConstants.EXECPTION_CLASS
          As of 1.1, replaced by EXCEPTION_CLASS 
org.osgi.framework.PackagePermission.EXPORT
          Since 1.5. Use exportonly instead. 
org.osgi.framework.Constants.EXPORT_SERVICE
          As of 1.2. 
org.osgi.framework.Constants.FRAMEWORK_EXECUTIONENVIRONMENT
          As of 1.6. Replaced by the osgi.ee capability. 
org.osgi.framework.Constants.IMPORT_SERVICE
          As of 1.2. 
org.osgi.framework.Constants.PACKAGE_SPECIFICATION_VERSION
          As of 1.3. This has been replaced by Constants.VERSION_ATTRIBUTE. 
org.apache.felix.scr.Component.STATE_DESTROYED
          as of version 1.2 this constant has been renamed to Component.STATE_DISPOSED. 
org.apache.felix.scr.Component.STATE_ENABLED
          as of version 1.2 the enabled state is collapsed into the Component.STATE_UNSATISFIED state. This status code is never returned from the Component.getState() method. 
 

Deprecated Methods
org.osgi.service.condpermadmin.ConditionalPermissionAdmin.addConditionalPermissionInfo(ConditionInfo[], PermissionInfo[])
          Since 1.1. Use ConditionalPermissionAdmin.newConditionalPermissionUpdate() instead. 
org.osgi.service.condpermadmin.ConditionalPermissionInfo.delete()
          Since 1.1. Use ConditionalPermissionAdmin.newConditionalPermissionUpdate() instead to manage the Conditional Permissions. 
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 
org.osgi.service.condpermadmin.ConditionalPermissionAdmin.getConditionalPermissionInfo(String)
          Since 1.1. Use ConditionalPermissionAdmin.newConditionalPermissionUpdate() instead. 
org.osgi.service.condpermadmin.ConditionalPermissionAdmin.getConditionalPermissionInfos()
          Since 1.1. Use ConditionalPermissionAdmin.newConditionalPermissionUpdate() instead. 
org.osgi.framework.Configurable.getConfigurationObject()
          As of 1.2. Please use Configuration Admin service. 
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.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. 
org.osgi.service.packageadmin.ExportedPackage.getSpecificationVersion()
          As of 1.2, replaced by ExportedPackage.getVersion(). 
org.knopflerfish.service.um.useradmin.BackEndControl.getSubscription()
          the subscription is now communicated as the service property "subscription", getSubscription still works though. 
org.osgi.service.upnp.UPnPException.getUPnPError_Code()
          As of version 1.2, replaced by UPnPException.getUPnPErrorCode() 
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.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) 
org.osgi.service.condpermadmin.ConditionalPermissionAdmin.setConditionalPermissionInfo(String, ConditionInfo[], PermissionInfo[])
          Since 1.1. Use ConditionalPermissionAdmin.newConditionalPermissionUpdate() instead. 
gnu.io.RXTXPort.setRcvFifoTrigger(int)
          deprecated but used in Kaffe 
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. 
org.osgi.service.url.URLStreamHandlerSetter.setURL(URL, String, String, int, String, String)
          This method is only for compatibility with handlers written for JDK 1.1. 
org.osgi.service.url.AbstractURLStreamHandlerService.setURL(URL, String, String, int, String, String)
          This method is only for compatibility with handlers written for JDK 1.1. 
 

Deprecated Constructors
org.osgi.framework.FrameworkEvent(int, Object)
          As of 1.2. This constructor is deprecated in favor of using the other constructor with the System Bundle as the event source. 
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. 
 


Knopflerfish OSGi 5.2.0