illegalCharInCookieValueMakesStrictEncoderThrowsException() — netty Function Reference
Architecture documentation for the illegalCharInCookieValueMakesStrictEncoderThrowsException() function in ServerCookieEncoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cbcfbd19_8009_dc58_3d1d_405c810af727["illegalCharInCookieValueMakesStrictEncoderThrowsException()"] 8f5d85cb_9261_ef89_d9fb_1265f8ca3574["ServerCookieEncoderTest"] cbcfbd19_8009_dc58_3d1d_405c810af727 -->|defined in| 8f5d85cb_9261_ef89_d9fb_1265f8ca3574 style cbcfbd19_8009_dc58_3d1d_405c810af727 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/cookie/ServerCookieEncoderTest.java lines 113–137
@Test
public void illegalCharInCookieValueMakesStrictEncoderThrowsException() {
Set<Character> illegalChars = new HashSet<Character>();
// CTLs
for (int i = 0x00; i <= 0x1F; i++) {
illegalChars.add((char) i);
}
illegalChars.add((char) 0x7F);
// whitespace, DQUOTE, comma, semicolon, and backslash
for (char c : new char[] { ' ', '"', ',', ';', '\\' }) {
illegalChars.add(c);
}
int exceptions = 0;
for (char c : illegalChars) {
try {
ServerCookieEncoder.STRICT.encode(new DefaultCookie("name", "value" + c));
} catch (IllegalArgumentException e) {
exceptions++;
}
}
assertEquals(illegalChars.size(), exceptions);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does illegalCharInCookieValueMakesStrictEncoderThrowsException() do?
illegalCharInCookieValueMakesStrictEncoderThrowsException() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/cookie/ServerCookieEncoderTest.java.
Where is illegalCharInCookieValueMakesStrictEncoderThrowsException() defined?
illegalCharInCookieValueMakesStrictEncoderThrowsException() is defined in codec-http/src/test/java/io/netty/handler/codec/http/cookie/ServerCookieEncoderTest.java at line 113.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free