Class ResteasyEntityPartBuilder
java.lang.Object
org.jboss.resteasy.plugins.providers.multipart.ResteasyEntityPartBuilder
- All Implemented Interfaces:
jakarta.ws.rs.core.EntityPart.Builder
public class ResteasyEntityPartBuilder
extends Object
implements jakarta.ws.rs.core.EntityPart.Builder
An implementation of the
EntityPart.Builder
.
This is not intended for direct usage. Use the EntityPart.withName(String)
instead.
- Author:
- James R. Perkins
-
Constructor Summary
ConstructorDescriptionCreates a new builder with the part name. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.EntityPart
build()
jakarta.ws.rs.core.EntityPart.Builder
content
(InputStream content) jakarta.ws.rs.core.EntityPart.Builder
<T> jakarta.ws.rs.core.EntityPart.Builder
content
(T content, jakarta.ws.rs.core.GenericType<T> type) <T> jakarta.ws.rs.core.EntityPart.Builder
jakarta.ws.rs.core.EntityPart.Builder
jakarta.ws.rs.core.EntityPart.Builder
jakarta.ws.rs.core.EntityPart.Builder
jakarta.ws.rs.core.EntityPart.Builder
mediaType
(jakarta.ws.rs.core.MediaType mediaType) jakarta.ws.rs.core.EntityPart.Builder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.core.EntityPart.Builder
content
-
Constructor Details
-
ResteasyEntityPartBuilder
Creates a new builder with the part name.- Parameters:
name
- the part name
-
-
Method Details
-
mediaType
public jakarta.ws.rs.core.EntityPart.Builder mediaType(jakarta.ws.rs.core.MediaType mediaType) throws IllegalArgumentException - Specified by:
mediaType
in interfacejakarta.ws.rs.core.EntityPart.Builder
- Throws:
IllegalArgumentException
-
mediaType
public jakarta.ws.rs.core.EntityPart.Builder mediaType(String mediaTypeString) throws IllegalArgumentException - Specified by:
mediaType
in interfacejakarta.ws.rs.core.EntityPart.Builder
- Throws:
IllegalArgumentException
-
header
public jakarta.ws.rs.core.EntityPart.Builder header(String headerName, String... headerValues) throws IllegalArgumentException - Specified by:
header
in interfacejakarta.ws.rs.core.EntityPart.Builder
- Throws:
IllegalArgumentException
-
headers
public jakarta.ws.rs.core.EntityPart.Builder headers(jakarta.ws.rs.core.MultivaluedMap<String, String> newHeaders) throws IllegalArgumentException- Specified by:
headers
in interfacejakarta.ws.rs.core.EntityPart.Builder
- Throws:
IllegalArgumentException
-
fileName
public jakarta.ws.rs.core.EntityPart.Builder fileName(String fileName) throws IllegalArgumentException - Specified by:
fileName
in interfacejakarta.ws.rs.core.EntityPart.Builder
- Throws:
IllegalArgumentException
-
content
public jakarta.ws.rs.core.EntityPart.Builder content(InputStream content) throws IllegalArgumentException - Specified by:
content
in interfacejakarta.ws.rs.core.EntityPart.Builder
- Throws:
IllegalArgumentException
-
content
public <T> jakarta.ws.rs.core.EntityPart.Builder content(T content, Class<? extends T> type) throws IllegalArgumentException - Specified by:
content
in interfacejakarta.ws.rs.core.EntityPart.Builder
- Throws:
IllegalArgumentException
-
content
public jakarta.ws.rs.core.EntityPart.Builder content(Object content) throws IllegalArgumentException - Specified by:
content
in interfacejakarta.ws.rs.core.EntityPart.Builder
- Throws:
IllegalArgumentException
-
content
public <T> jakarta.ws.rs.core.EntityPart.Builder content(T content, jakarta.ws.rs.core.GenericType<T> type) throws IllegalArgumentException - Specified by:
content
in interfacejakarta.ws.rs.core.EntityPart.Builder
- Throws:
IllegalArgumentException
-
build
public jakarta.ws.rs.core.EntityPart build() throws IllegalStateException, IOException, jakarta.ws.rs.WebApplicationException- Specified by:
build
in interfacejakarta.ws.rs.core.EntityPart.Builder
- Throws:
IllegalStateException
IOException
jakarta.ws.rs.WebApplicationException
-