 |
-
-
Field Summary
-
Fields inherited from class java.io.Writer
lock
-
Constructor Summary
Constructors
Constructor and Description |
MockBodyContent(java.lang.String content,
HttpServletResponse response)
Create a MockBodyContent for the given response.
|
MockBodyContent(java.lang.String content,
HttpServletResponse response,
java.io.Writer targetWriter)
Create a MockBodyContent for the given response.
|
MockBodyContent(java.lang.String content,
java.io.Writer targetWriter)
Create a MockBodyContent for the given response.
|
-
Method Summary
-
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MockBodyContent
public MockBodyContent(java.lang.String content,
HttpServletResponse response)
Create a MockBodyContent for the given response.
- Parameters:
content - the body content to expose
response - the servlet response to wrap
-
MockBodyContent
public MockBodyContent(java.lang.String content,
java.io.Writer targetWriter)
Create a MockBodyContent for the given response.
- Parameters:
content - the body content to expose
targetWriter - the target Writer to wrap
-
MockBodyContent
public MockBodyContent(java.lang.String content,
@Nullable
HttpServletResponse response,
@Nullable
java.io.Writer targetWriter)
Create a MockBodyContent for the given response.
- Parameters:
content - the body content to expose
response - the servlet response to wrap
targetWriter - the target Writer to wrap
|
|