Class Boundary
java.lang.Object
org.glassfish.jersey.media.multipart.Boundary
Utility for creating boundary parameters.
- Author:
- Paul Sandoz, Michal Gajdos
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Creates a unique boundary.
-
Field Details
-
BOUNDARY_PARAMETER
- See Also:
-
-
Constructor Details
-
Boundary
public Boundary()
-
-
Method Details
-
addBoundary
Transforms a media type and add a boundary parameter with a unique value if one is not already present.- Parameters:
mediaType
- ifnull
then a media type of "multipart/mixed" with a boundary parameter will be returned.- Returns:
- the media type with a boundary parameter.
-
createBoundary
Creates a unique boundary.- Returns:
- the boundary.
-