testHttpPostStandardRequestDecoderToDiskNameContainingUnauthorizedChar() — netty Function Reference
Architecture documentation for the testHttpPostStandardRequestDecoderToDiskNameContainingUnauthorizedChar() function in HttpPostRequestDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 72eaa957_5da4_1a7b_db68_cf25d4c88289["testHttpPostStandardRequestDecoderToDiskNameContainingUnauthorizedChar()"] d3dadcbe_07b1_86dc_3f34_5a56e9d1367e["HttpPostRequestDecoderTest"] 72eaa957_5da4_1a7b_db68_cf25d4c88289 -->|defined in| d3dadcbe_07b1_86dc_3f34_5a56e9d1367e style 72eaa957_5da4_1a7b_db68_cf25d4c88289 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java lines 1005–1036
@Test
void testHttpPostStandardRequestDecoderToDiskNameContainingUnauthorizedChar() throws UnsupportedEncodingException {
StringBuffer sb = new StringBuffer();
byte[] bodyBytes = ("aaaa/bbbb=aaaaaaaaaa" +
"aaaaaaaaaaaaaaaaaaaaaaaaaa" +
"aaaaaaaaaaaaaaaaaaaaaaaaaa" +
"aaaaaaaaaaaaaaaaaaa").getBytes(CharsetUtil.US_ASCII);
ByteBuf content = Unpooled.directBuffer(bodyBytes.length);
content.writeBytes(bodyBytes);
FullHttpRequest req =
new DefaultFullHttpRequest(
HttpVersion.HTTP_1_1,
HttpMethod.POST,
"/",
content);
HttpPostStandardRequestDecoder decoder = null;
try {
decoder = new HttpPostStandardRequestDecoder(
new DefaultHttpDataFactory(true),
req
);
decoder.destroy();
} catch (HttpPostRequestDecoder.ErrorDataDecoderException e) {
if (null != decoder) {
decoder.destroy();
}
fail("Was not expecting an exception");
} finally {
assertTrue(req.release());
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testHttpPostStandardRequestDecoderToDiskNameContainingUnauthorizedChar() do?
testHttpPostStandardRequestDecoderToDiskNameContainingUnauthorizedChar() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java.
Where is testHttpPostStandardRequestDecoderToDiskNameContainingUnauthorizedChar() defined?
testHttpPostStandardRequestDecoderToDiskNameContainingUnauthorizedChar() is defined in codec-http/src/test/java/io/netty/handler/codec/http/multipart/HttpPostRequestDecoderTest.java at line 1005.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free