public class MultiPartBodyImpl extends AbstractParameterCollection implements MultiPartBody
Modifier and Type | Class and Description |
---|---|
static class |
MultiPartBodyImpl.FormFileImpl |
Modifier and Type | Field and Description |
---|---|
protected static int |
maxSize
the maximum size of the parsed message-body
|
rawCollection
Constructor and Description |
---|
MultiPartBodyImpl(InputStream rawIn,
javax.ws.rs.core.MediaType type)
Creates a MultiPartBody from the InputStream of the body and the MediaType
|
MultiPartBodyImpl(InputStream rawIn,
String boundary)
creates a MultiPartBody by parsing a stream
|
Modifier and Type | Method and Description |
---|---|
String[] |
getFileParameterNames() |
FormFile[] |
getFormFileParameterValues(String name) |
String[] |
getParameterNames() |
String[] |
getTextParameterNames() |
String[] |
getTextParameterValues(String name) |
Iterator<KeyValuePair<ParameterValue>> |
iterator() |
getParameteValues, size
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParameteValues
public MultiPartBodyImpl(InputStream rawIn, String boundary) throws IOException
rawIn
- boundary
- the boundary-string delimiting the partsHandlerException
IOException
public MultiPartBodyImpl(InputStream rawIn, javax.ws.rs.core.MediaType type) throws IOException
rawIn
- type
- HandlerException
IOException
public String[] getFileParameterNames()
getFileParameterNames
in interface MultiPartBody
public FormFile[] getFormFileParameterValues(String name)
getFormFileParameterValues
in interface MultiPartBody
name
- the name of the parameterpublic String[] getParameterNames()
getParameterNames
in interface MultiPartBody
getParameterNames
in interface ParameterCollection
getParameterNames
in class AbstractParameterCollection
public String[] getTextParameterNames()
getTextParameterNames
in interface MultiPartBody
public String[] getTextParameterValues(String name)
getTextParameterValues
in interface MultiPartBody
name
- the name of the parameterpublic Iterator<KeyValuePair<ParameterValue>> iterator()
iterator
in interface Iterable<KeyValuePair<ParameterValue>>
iterator
in interface Collection<KeyValuePair<ParameterValue>>
iterator
in class AbstractCollection<KeyValuePair<ParameterValue>>
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.