public final class Boundary extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BOUNDARY_PARAMETER |
Constructor and Description |
---|
Boundary() |
Modifier and Type | Method and Description |
---|---|
static MediaType |
addBoundary(MediaType mediaType)
Transforms a media type and add a boundary parameter with a unique value
if one is not already present.
|
static String |
createBoundary()
Creates a unique boundary.
|
public static final String BOUNDARY_PARAMETER
public static MediaType addBoundary(MediaType mediaType)
mediaType
- if null
then a media type of "multipart/mixed" with a boundary parameter will be returned.public static String createBoundary()
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.