Top Description Inners Fields Constructors Methods
io.undertow.attribute

public Class QuotingExchangeAttribute

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

Exchange attribute that wraps string attributes in quotes. This is mostly used
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 ExchangeAttribute
public static final ExchangeAttributeWrapper

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 String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

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:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

exchangeAttributeback to summary
private final ExchangeAttribute exchangeAttribute
WRAPPERback to summary
public static final ExchangeAttributeWrapper WRAPPER

Constructor Detail

QuotingExchangeAttributeback to summary
public QuotingExchangeAttribute(ExchangeAttribute exchangeAttribute)

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
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

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
io.undertow.attribute back to summary

public Class QuotingExchangeAttribute.Wrapper

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

Wrapperback to summary
public Wrapper()

Method Detail

wrapback to summary
public ExchangeAttribute wrap(final ExchangeAttribute attribute)

Implements io.undertow.attribute.ExchangeAttributeWrapper.wrap.

Annotations
@Override