testGetCharsetIfNotLastParameter() — netty Function Reference
Architecture documentation for the testGetCharsetIfNotLastParameter() function in HttpUtilTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 442da1f0_3f82_9364_7919_e9444ffedd35["testGetCharsetIfNotLastParameter()"] 04f193b8_77e1_8af0_51b3_8dcd3ac8de0e["HttpUtilTest"] 442da1f0_3f82_9364_7919_e9444ffedd35 -->|defined in| 04f193b8_77e1_8af0_51b3_8dcd3ac8de0e style 442da1f0_3f82_9364_7919_e9444ffedd35 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java lines 192–206
@Test
public void testGetCharsetIfNotLastParameter() {
String NORMAL_CONTENT_TYPE_WITH_PARAMETERS = "application/soap-xml; charset=utf-8; "
+ "action=\"http://www.soap-service.by/foo/add\"";
HttpMessage message = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.POST,
"http://localhost:7788/foo");
message.headers().set(HttpHeaderNames.CONTENT_TYPE, NORMAL_CONTENT_TYPE_WITH_PARAMETERS);
assertEquals(CharsetUtil.UTF_8, HttpUtil.getCharset(message));
assertEquals(CharsetUtil.UTF_8, HttpUtil.getCharset(NORMAL_CONTENT_TYPE_WITH_PARAMETERS));
assertEquals("utf-8", HttpUtil.getCharsetAsSequence(message));
assertEquals("utf-8", HttpUtil.getCharsetAsSequence(NORMAL_CONTENT_TYPE_WITH_PARAMETERS));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testGetCharsetIfNotLastParameter() do?
testGetCharsetIfNotLastParameter() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java.
Where is testGetCharsetIfNotLastParameter() defined?
testGetCharsetIfNotLastParameter() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpUtilTest.java at line 192.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free