Skip to content

Commit

Permalink
Issue #12163 - Adding more HttpConfiguration output of fields to dump…
Browse files Browse the repository at this point in the history
… and jmx
  • Loading branch information
joakime committed Aug 14, 2024
1 parent e7f1512 commit 8dafe09
Showing 1 changed file with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public HttpConfiguration(HttpConfiguration config)
_redirectUriCompliance = config._redirectUriCompliance;
_serverAuthority = config._serverAuthority;
_localAddress = config._localAddress;
_maxUnconsumedRequestContentReads = config._maxUnconsumedRequestContentReads;
}

/**
Expand Down Expand Up @@ -499,8 +500,9 @@ public void setFormEncodedMethods(String... methods)

/**
* @return the set of HTTP methods of requests that can be decoded as
* {@code x-www-form-urlencoded} content.
* {@code application/x-www-form-urlencoded} content.
*/
@ManagedAttribute("The methods that support application/x-www-form-urlencoded content")
public Set<String> getFormEncodedMethods()
{
return _formEncodedMethods.keySet();
Expand Down Expand Up @@ -585,6 +587,7 @@ public void setMinResponseDataRate(long bytesPerSecond)
_minResponseDataRate = bytesPerSecond;
}

@ManagedAttribute("The HTTP compliance mode")
public HttpCompliance getHttpCompliance()
{
return _httpCompliance;
Expand All @@ -595,6 +598,7 @@ public void setHttpCompliance(HttpCompliance httpCompliance)
_httpCompliance = httpCompliance;
}

@ManagedAttribute("The URI compliance mode")
public UriCompliance getUriCompliance()
{
return _uriCompliance;
Expand Down Expand Up @@ -622,6 +626,7 @@ public void setRedirectUriCompliance(UriCompliance uriCompliance)
* @return The CookieCompliance used for parsing request {@code Cookie} headers.
* @see #getResponseCookieCompliance()
*/
@ManagedAttribute("The HTTP request cookie compliance mode")
public CookieCompliance getRequestCookieCompliance()
{
return _requestCookieCompliance;
Expand All @@ -639,6 +644,7 @@ public void setRequestCookieCompliance(CookieCompliance cookieCompliance)
* @return The CookieCompliance used for generating response {@code Set-Cookie} headers
* @see #getRequestCookieCompliance()
*/
@ManagedAttribute("The HTTP response cookie compliance mode")
public CookieCompliance getResponseCookieCompliance()
{
return _responseCookieCompliance;
Expand All @@ -655,6 +661,7 @@ public void setResponseCookieCompliance(CookieCompliance cookieCompliance)
/**
* @return the {@link MultiPartCompliance} used for validating multipart form syntax.
*/
@ManagedAttribute("The multipart/form-data compliance mode")
public MultiPartCompliance getMultiPartCompliance()
{
return _multiPartCompliance;
Expand Down Expand Up @@ -765,7 +772,7 @@ public void setLocalAddress(SocketAddress localAddress)
*
* @return Returns the connection server authority (name/port) or null
*/
@ManagedAttribute("The server authority if none provided by requests")
@ManagedAttribute("The server authority override")
public HostPort getServerAuthority()
{
return _serverAuthority;
Expand Down Expand Up @@ -833,6 +840,7 @@ public void dump(Appendable out, String indent) throws IOException
"requestHeaderSize=" + _requestHeaderSize,
"responseHeaderSize=" + _responseHeaderSize,
"headerCacheSize=" + _headerCacheSize,
"headerCacheCaseSensitive=" + _headerCacheCaseSensitive,
"secureScheme=" + _secureScheme,
"securePort=" + _securePort,
"idleTimeout=" + _idleTimeout,
Expand All @@ -842,12 +850,21 @@ public void dump(Appendable out, String indent) throws IOException
"delayDispatchUntilContent=" + _delayDispatchUntilContent,
"persistentConnectionsEnabled=" + _persistentConnectionsEnabled,
"maxErrorDispatches=" + _maxErrorDispatches,
"useInputDirectByteBuffers=" + _useInputDirectByteBuffers,
"useOutputDirectByteBuffers=" + _useOutputDirectByteBuffers,
"minRequestDataRate=" + _minRequestDataRate,
"minResponseDataRate=" + _minResponseDataRate,
"httpCompliance=" + _httpCompliance,
"uriCompliance=" + _uriCompliance,
"redirectUriCompliance=" + _redirectUriCompliance,
"requestCookieCompliance=" + _requestCookieCompliance,
"responseCookieCompliance=" + _responseCookieCompliance,
"multiPartCompliance=" + _multiPartCompliance,
"notifyRemoteAsyncErrors=" + _notifyRemoteAsyncErrors,
"relativeRedirectAllowed=" + _relativeRedirectAllowed
"relativeRedirectAllowed=" + _relativeRedirectAllowed,
"serverAuthority=" + _serverAuthority,
"localAddress=" + _localAddress,
"maxUnconsumedRequestContentReads=" + _maxUnconsumedRequestContentReads
);
}

Expand Down

0 comments on commit 8dafe09

Please sign in to comment.