public class OpenWireUtil extends Object
| Constructor and Description |
|---|
OpenWireUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertJmsPackage(String className)
This method can be used to convert from javax -> jakarta or
vice versa depending on the version used by the client
|
static void |
validateBufferSize(OpenWireFormat wireFormat,
int size)
Verify that the buffer size that will be allocated will not push the total allocated
size of this frame above the expected frame size.
|
static void |
validateIsThrowable(Class<?> clazz)
Verify that the provided class extends
Throwable and throw an
IllegalArgumentException if it does not. |
public OpenWireUtil()
public static void validateIsThrowable(Class<?> clazz)
Throwable and throw an
IllegalArgumentException if it does not.clazz - public static void validateBufferSize(OpenWireFormat wireFormat, int size) throws IOException
wireFormat - configured OpenWireFormatsize - buffer size to verifyIOException - If size is larger than currentFrameSize or maxFrameSizepublic static String convertJmsPackage(String className)
className - Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.