public final class URIWriter extends Object
| Constructor and Description |
|---|
URIWriter(Appendable appendable)
Create a new URI writer.
|
URIWriter(Appendable appendable,
MimeType mimeType)
Create a new URI writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(char c) |
void |
append(String s) |
void |
appendQueryParameter(String parameterName,
String paramaterValue)
Append a query parameter to the parameter set.
|
void |
appendSegment(char c)
Append a segment to the path.
|
void |
appendSegment(String s)
Append a segment to the path.
|
MimeType |
getMimeType() |
void |
reset(Appendable appendable)
Reset the writer for reuse.
|
void |
setMimeType(MimeType mimeType) |
public URIWriter(Appendable appendable, MimeType mimeType) throws NullPointerException
appendable - the appendablemimeType - the mime typeNullPointerException - if the appendable argument is nullpublic URIWriter(Appendable appendable) throws NullPointerException
appendable - the appendableNullPointerException - if the appendable argument is nullpublic MimeType getMimeType()
public void setMimeType(MimeType mimeType)
public void append(char c)
throws IOException
IOExceptionpublic void append(String s) throws IOException
IOExceptionpublic void appendSegment(char c)
throws IllegalStateException,
IOException
c - the char to appendIllegalStateException - if a query parameter was already appendedIOException - any IO exceptionpublic void appendSegment(String s) throws NullPointerException, IllegalStateException, IOException
s - the string to append.NullPointerException - if any argument value is nullIllegalStateException - if a query parameter was already appendedIOException - any IO exceptionpublic void appendQueryParameter(String parameterName, String paramaterValue) throws NullPointerException, IOException
parameterName - the parameter nameparamaterValue - the parameter valueNullPointerException - if any argument value is nullIOException - any IOExceptionpublic void reset(Appendable appendable)
appendable - the used appendableCopyright © 2018 JBoss by Red Hat. All Rights Reserved.