Top Inners Fields Constructors Methods
io.undertow.attribute

public Class SubstituteEmptyWrapper

extends Object
implements ExchangeAttributeWrapper
Class Inheritance
All Implemented Interfaces
io.undertow.attribute.ExchangeAttributeWrapper
Imports
io.undertow.server.HttpServerExchange

Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ExchangeAttribute
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

substituteback to summary
private final String substitute

Constructor Detail

SubstituteEmptyWrapperback to summary
public SubstituteEmptyWrapper(String substitute)

Method Detail

wrapback to summary
public ExchangeAttribute wrap(final ExchangeAttribute attribute)

Implements io.undertow.attribute.ExchangeAttributeWrapper.wrap.

Annotations
@Override
io.undertow.attribute back to summary

public Class SubstituteEmptyWrapper.SubstituteEmptyAttribute

extends Object
implements ExchangeAttribute
Class Inheritance
  • java.lang.Object
  • io.undertow.attribute.SubstituteEmptyWrapper.SubstituteEmptyAttribute
All Implemented Interfaces
io.undertow.attribute.ExchangeAttribute

Field Summary

Modifier and TypeField and Description
private final ExchangeAttribute
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
readAttribute(HttpServerExchange
The exchange
exchange
)

Implements io.undertow.attribute.ExchangeAttribute.readAttribute.

Resolve the attribute from the HTTP server exchange.

public void
writeAttribute(HttpServerExchange
The exchange
exchange
,
String
The new value for the attribute
newValue
)

Implements io.undertow.attribute.ExchangeAttribute.writeAttribute.

Sets a new value for the attribute.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeback to summary
private final ExchangeAttribute attribute
substituteback to summary
private final String substitute

Constructor Detail

SubstituteEmptyAttributeback to summary
public SubstituteEmptyAttribute(ExchangeAttribute attribute, String substitute)

Method Detail

readAttributeback to summary
public String readAttribute(HttpServerExchange exchange)

Implements io.undertow.attribute.ExchangeAttribute.readAttribute.

Doc from io.undertow.attribute.ExchangeAttribute.readAttribute.

Resolve the attribute from the HTTP server exchange. This may return null if the attribute is not present.

Parameters
exchange:HttpServerExchange

The exchange

Returns:String

The attribute

Annotations
@Override
writeAttributeback to summary
public void writeAttribute(HttpServerExchange exchange, String newValue) throws ReadOnlyAttributeException

Implements io.undertow.attribute.ExchangeAttribute.writeAttribute.

Doc from io.undertow.attribute.ExchangeAttribute.writeAttribute.

Sets a new value for the attribute. Not all attributes are writable.

Parameters
exchange:HttpServerExchange

The exchange

newValue:String

The new value for the attribute

Annotations
@Override
Exceptions
ReadOnlyAttributeException:
when attribute cannot be written