org.glassfish.jersey.media.multipart
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 (paul.sandoz at oracle.com), Michal Gajdos (michal.gajdos at oracle.com)
|
Method Summary |
static javax.ws.rs.core.MediaType |
addBoundary(javax.ws.rs.core.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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BOUNDARY_PARAMETER
public static final String BOUNDARY_PARAMETER
- See Also:
- Constant Field Values
Boundary
public Boundary()
addBoundary
public static javax.ws.rs.core.MediaType addBoundary(javax.ws.rs.core.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.
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.