undertow-core-2.0.13.Final.jar
登录
|
io.undertow:undertow-core:2.0.13.Final
io
undertow
io
UndertowOptions.java
security
protocols
conduits
predicate
connector
util
Version.java
Undertow.java
UndertowLogger.java
version.properties
channels
UndertowLogger_$logger.java
server
attribute
TransportProtocolAttribute.java
ResolvedPathAttribute.java
LocalIPAttribute.java
SubstituteEmptyWrapper.java
ExchangeAttributeParser.java
CookieAttribute.java
PathParameterAttribute.java
SecureExchangeAttribute.java
ExchangeAttributeWrapper.java
SslClientCertAttribute.java
QueryStringAttribute.java
ExchangeAttributeBuilder.java
PredicateContextAttribute.java
RequestHeaderAttribute.java
ResponseReasonPhraseAttribute.java
RequestURLAttribute.java
ReadOnlyAttributeException.java
LocalPortAttribute.java
SslCipherAttribute.java
StoredResponse.java
IdentUsernameAttribute.java
QuotingExchangeAttribute.java
RequestSchemeAttribute.java
ExchangeAttributes.java
SslSessionIdAttribute.java
ResponseTimeAttribute.java
RemoteHostAttribute.java
HostAndPortAttribute.java
RequestPathAttribute.java
RequestProtocolAttribute.java
ThreadNameAttribute.java
RemoteIPAttribute.java
ResponseCodeAttribute.java
AuthenticationTypeExchangeAttribute.java
RequestLineAttribute.java
DateTimeAttribute.java
RemoteUserAttribute.java
ResponseHeaderAttribute.java
BytesSentAttribute.java
RequestMethodAttribute.java
ExchangeAttribute.java
QueryParameterAttribute.java
CompositeExchangeAttribute.java
NullAttribute.java
ConstantExchangeAttribute.java
RelativePathAttribute.java
LocalServerNameAttribute.java
UndertowMessages_$bundle.java
Handlers.java
client
websockets
UndertowMessages.java
META-INF
SubstituteEmptyWrapper.java
清空
类结构
package io.undertow.attribute; import io.undertow.server.
HttpServerExchange
; /** * @author Stuart Douglas */ public class
SubstituteEmptyWrapper
implements
ExchangeAttributeWrapper
{ private final
String
substitute
; public
SubstituteEmptyWrapper
(
String
substitute
) { this.
substitute
=
substitute
; } @
Override
public
ExchangeAttribute
wrap
(final
ExchangeAttribute
attribute
) { return new
SubstituteEmptyAttribute
(
attribute
,
substitute
); } public static class
SubstituteEmptyAttribute
implements
ExchangeAttribute
{ private final
ExchangeAttribute
attribute
; private final
String
substitute
; public
SubstituteEmptyAttribute
(
ExchangeAttribute
attribute
,
String
substitute
) { this.
attribute
=
attribute
; this.
substitute
=
substitute
; } @
Override
public
String
readAttribute
(
HttpServerExchange
exchange
) {
String
val
=
attribute
.
readAttribute
(
exchange
); if(
val
== null ||
val
.
isEmpty
()) { return
substitute
; } return
val
; } @
Override
public void
writeAttribute
(
HttpServerExchange
exchange
,
String
newValue
) throws
ReadOnlyAttributeException
{
attribute
.
writeAttribute
(
exchange
,
newValue
); } } }
查找资源
Jre/Lib
输入类名或文件名
类结构窗口