Class Boundary

java.lang.Object
org.glassfish.jersey.media.multipart.Boundary

public final class Boundary extends Object
Utility for creating boundary parameters.
Author:
Paul Sandoz, Michal Gajdos
  • Field Details

  • Constructor Details

    • Boundary

      public Boundary()
  • Method Details

    • addBoundary

      public static MediaType addBoundary(MediaType mediaType)
      Transforms a media type and add a boundary parameter with a unique value if one is not already present.
      Parameters:
      mediaType - if null then a media type of "multipart/mixed" with a boundary parameter will be returned.
      Returns:
      the media type with a boundary parameter.
    • createBoundary

      public static String createBoundary()
      Creates a unique boundary.
      Returns:
      the boundary.