# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

- Deprecated Classes
  Class and Description
  org.apache.jmeter.protocol.http.util.Base64Encoder as exists now in java.util.Base64, will be removed in next version 3.3
  org.apache.jorphan.logging.LoggingManager since 3.2, use SLF4J for logger creation

- Deprecated Fields
  Field and Description
  org.apache.jorphan.logging.LoggingManager.DEFAULT_PATTERN since 3.2, use SLF4J for logging
  org.apache.jmeter.util.JSR223BeanInfoSupport.LANGUAGE_NAMES use `JSR223BeanInfoSupport.getLanguageNames()`
  org.apache.jorphan.logging.LoggingManager.LOG_FILE since 3.2, use SLF4J for logging
  org.apache.jorphan.logging.LoggingManager.LOG_PRIORITY since 3.2, use SLF4J for logging

- Deprecated Methods
  Method and Description
  org.apache.jorphan.logging.LoggingManager.addLogTargetToRootLogger(LogTarget[]) since 3.2, use SLF4J for logging
  org.apache.jorphan.reflect.Functor.checkMethod(Object) ** for use by Unit test code only **
  org.apache.jorphan.reflect.Functor.checkMethod(Object, Class<?>) ** for use by Unit test code only **
  org.apache.jmeter.samplers.SampleResult.getBodySize() replaced by getBodySizeAsLong()
  org.apache.jmeter.samplers.SampleResult.getBytes() use getBytesAsLong
  org.apache.jmeter.visualizers.backend.AbstractBackendListenerClient.getLogger() Will be removed in 3.3, use `AbstractBackendListenerClient.getNewLogger()`
  org.apache.jmeter.protocol.java.sampler.AbstractJavaSamplerClient.getLogger() Will be removed in 3.3, use `AbstractJavaSamplerClient.getNewLogger()`
  org.apache.jorphan.logging.LoggingManager.getLoggerForShortName(String) since 3.2, use SLF4J for logging
  org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.getMonitor() since 3.2 always returns false
  org.apache.jmeter.util.JMeterUtils.getResString(String, String) Only intended for use in development; use getResString(String) normally
  org.apache.jmeter.protocol.http.control.CacheManager.inCache(URL) use a version of `CacheManager.inCache(URL, Header[])` or `CacheManager.inCache(URL, org.apache.jmeter.protocol.http.control.Header[])`
  org.apache.jorphan.logging.LoggingManager.initializeLogging(Properties) since 3.2, use SLF4J for logging
  org.apache.jmeter.util.JMeterUtils.initLogging()
  org.apache.jmeter.samplers.SampleResult.isMonitor() since 3.2 always return false
  org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.isMonitor() since 3.2 always return false
  org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.isMonitor() since 3.2 always returns false
  org.apache.jmeter.protocol.http.control.HeaderManager.merge(TestElement, boolean) since 3.2, use `HeaderManager.merge(TestElement)` as this method will be removed in a future version
  org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.notifySSLContextWasReset() ** unused since r1489189. **
  org.apache.jmeter.protocol.tcp.sampler.LengthPrefixedBinaryTCPClientImpl.read(InputStream)
  org.apache.jmeter.protocol.tcp.sampler.TCPClient.read(InputStream) since 3.3, implement `TCPClient.read(InputStream, SampleResult)` instead, will be removed in future version
  org.apache.jmeter.protocol.tcp.sampler.TCPClientImpl.read(InputStream)
  org.apache.jmeter.protocol.tcp.sampler.BinaryTCPClientImpl.read(InputStream)
  org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(SampleResult, BufferedInputStream, int) use `HTTPAbstractImpl.readResponse(SampleResult, BufferedInputStream, long)`
  org.apache.jorphan.logging.LoggingManager.removePrefix(String) since 3.2, use SLF4J for logging
  org.apache.jmeter.samplers.SampleResult.setBodySize(int) use setBodySize(long)
  org.apache.jmeter.samplers.SampleResult.setBytes(int) use setBytes(long)
  org.apache.jorphan.logging.LoggingManager.setLoggingLevels(Properties) since 3.2, use SLF4J for logging
  org.apache.jmeter.samplers.SampleResult.setMonitor(boolean) since 3.2 NOOP
  org.apache.jorphan.logging.LoggingManager.setPriority(Priority) since 3.2, use SLF4J for logging
  org.apache.jorphan.logging.LoggingManager.setPriority(Priority, String) since 3.2, use SLF4J for logging
  org.apache.jorphan.logging.LoggingManager.setPriority(String) since 3.2, use SLF4J for logging
  org.apache.jorphan.logging.LoggingManager.setPriority(String, String) since 3.2, use SLF4J for logging
  org.apache.jorphan.logging.LoggingManager.setPriorityFullName(String, String) since 3.2, use SLF4J for logging
  org.apache.jmeter.samplers.SampleResult.setResponseData(String) - only intended for use from BeanShell code
  org.apache.jorphan.logging.LoggingManager.setTarget(LogTarget, String) since 3.2, use SLF4J for logging
  org.apache.jmeter.visualizers.StatVisualizer.testFunctors() - only for use in testing
  org.apache.jmeter.visualizers.SummaryReport.testFunctors() - only for use in testing
  org.apache.jmeter.visualizers.GraphVisualizer.updateGui(Sample) use `GraphVisualizer.add(SampleResult)` instead

- Deprecated Constructors
  Constructor and Description
  org.apache.jmeter.assertions.AssertionResult() - use the named constructor
  org.apache.jmeter.samplers.AsynchSampleSender() only for use by test code
  org.apache.jmeter.samplers.BatchSampleSender() only for use by test code
  org.apache.jmeter.assertions.CompareAssertionResult() Use the other ctor
  org.apache.jmeter.report.core.ConvertException() UNIT TEST ONLY
  org.apache.jmeter.protocol.http.parser.CSSParseExceptionCallback() - only for use from unit test code
  org.apache.jmeter.report.core.CsvFile() UNIT TEST ONLY
  org.apache.jmeter.samplers.DataStrippingSampleSender() only for use by test code
  org.apache.jmeter.samplers.DiskStoreSampleSender() only for use by test code
  org.apache.jmeter.testbeans.gui.FileEditor() Only for use by test cases
  org.apache.jmeter.testbeans.gui.GenericTestBeanCustomizer() only for use by test code
  org.apache.jmeter.samplers.HoldSampleSender() only for use by test code
  org.apache.jmeter.exceptions.IllegalUserActionException() - use IllegalUserActionException(String)
  org.apache.jmeter.gui.util.JLabeledRadioI18N() - only for use in testing
  org.apache.jmeter.gui.tree.JMeterTreeModel(Object) - only for use by JMeter class!
  org.apache.jmeter.gui.util.JSyntaxTextArea()
  org.apache.jmeter.gui.util.JSyntaxTextArea(int, int) use `JSyntaxTextArea.getInstance(int, int)` instead
  org.apache.jmeter.gui.util.JSyntaxTextArea(int, int, boolean) use `JSyntaxTextArea.getInstance(int, int, boolean)` instead
  org.apache.jmeter.gui.util.JTextScrollPane()
  org.apache.jmeter.gui.util.JTextScrollPane(JSyntaxTextArea) use `JTextScrollPane.getInstance(JSyntaxTextArea)` instead
  org.apache.jmeter.gui.util.JTextScrollPane(JSyntaxTextArea, boolean) use `JTextScrollPane.getInstance(JSyntaxTextArea, boolean)` instead
  org.apache.jmeter.gui.MainFrame() Do not use - only needed for JUnit tests
  org.apache.jmeter.protocol.http.config.MultipartUrlConfig() only for use by unit tests
  org.apache.jmeter.protocol.tcp.sampler.ReadException() For use by test code only (serialisation tests)
  org.apache.jmeter.gui.SavePropertyDialog() Constructor only intended for use in testing
  org.apache.jmeter.visualizers.SearchTreePanel() only for use by test code
  org.apache.jmeter.samplers.StandardSampleSender() only for use by test code
  org.apache.jmeter.samplers.StatisticalSampleResult(long, long) Needs to be replaced when multiple sample results are sorted out
  org.apache.jmeter.samplers.StatisticalSampleSender() only for use by test code
  org.apache.jmeter.visualizers.TableSample() for unit test code only
  org.apache.jmeter.testbeans.gui.TestBeanGUI() Dummy for JUnit test purposes only
  org.apache.jmeter.control.TransactionSampler() only for use by test code
  org.apache.jmeter.gui.UndoHistoryItem() DO NOT USE
  org.apache.jmeter.visualizers.XMLDefaultMutableTreeNode() only for use by test code

Copyright © 1998-2017 Apache Software Foundation. All Rights Reserved.