Top Description Inners Fields Constructors Methods
io.undertow.server.handlers.accesslog

public Class ExtendedAccessLogParser

extends Object
Class Inheritance
Imports
io.undertow.UndertowLogger, .Version, io.undertow.attribute.AuthenticationTypeExchangeAttribute, .BytesSentAttribute, .CompositeExchangeAttribute, .ConstantExchangeAttribute, .CookieAttribute, .DateTimeAttribute, .ExchangeAttribute, .ExchangeAttributeParser, .ExchangeAttributes, .LocalIPAttribute, .QueryStringAttribute, .QuotingExchangeAttribute, .ReadOnlyAttributeException, .RemoteIPAttribute, .RemoteUserAttribute, .RequestHeaderAttribute, .RequestMethodAttribute, .RequestProtocolAttribute, .RequestSchemeAttribute, .RequestURLAttribute, .ResponseCodeAttribute, .ResponseHeaderAttribute, .ResponseTimeAttribute, .SecureExchangeAttribute, .SubstituteEmptyWrapper, io.undertow.server.HttpServerExchange, io.undertow.util.HeaderValues, .Headers, .HttpString, java.io.IOException, .StringReader, java.net.InetSocketAddress, java.util.ArrayList, .List, java.util.concurrent.TimeUnit

Parser that transforms an extended access log format string into a Undertow access log format string.
Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
private static class

Field Summary

Modifier and TypeField and Description
private final ExchangeAttributeParser
parser

parser that is used to access servlet context attributes, to avoid bringing in servlet context dependencies

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected ExchangeAttribute
protected ExchangeAttribute
protected ExchangeAttribute
protected ExchangeAttribute
protected ExchangeAttribute
protected ExchangeAttribute
public ExchangeAttribute
parse(String pattern)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

parserback to summary
private final ExchangeAttributeParser parser

parser that is used to access servlet context attributes, to avoid bringing in servlet context dependencies

Constructor Detail

ExtendedAccessLogParserback to summary
public ExtendedAccessLogParser(ClassLoader classLoader)

Method Detail

getClientToServerElementback to summary
protected ExchangeAttribute getClientToServerElement(ExtendedAccessLogParser.PatternTokenizer tokenizer) throws IOException
getLogElementback to summary
protected ExchangeAttribute getLogElement(String token, ExtendedAccessLogParser.PatternTokenizer tokenizer) throws IOException
getProxyElementback to summary
protected ExchangeAttribute getProxyElement(ExtendedAccessLogParser.PatternTokenizer tokenizer) throws IOException
getServerToClientElementback to summary
protected ExchangeAttribute getServerToClientElement(ExtendedAccessLogParser.PatternTokenizer tokenizer) throws IOException
getServletRequestElementback to summary
protected ExchangeAttribute getServletRequestElement(String parameter)
getXParameterElementback to summary
protected ExchangeAttribute getXParameterElement(ExtendedAccessLogParser.PatternTokenizer tokenizer) throws IOException
parseback to summary
public ExchangeAttribute parse(String pattern)
io.undertow.server.handlers.accesslog back to summary

public Class ExtendedAccessLogParser.ExtendedAccessLogHeaderGenerator

extends Object
implements LogFileHeaderGenerator
Class Inheritance
  • java.lang.Object
  • io.undertow.server.handlers.accesslog.ExtendedAccessLogParser.ExtendedAccessLogHeaderGenerator
All Implemented Interfaces
io.undertow.server.handlers.accesslog.LogFileHeaderGenerator

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Field Detail

patternback to summary
private final String pattern

Constructor Detail

ExtendedAccessLogHeaderGeneratorback to summary
public ExtendedAccessLogHeaderGenerator(String pattern)

Method Detail

generateHeaderback to summary
public String generateHeader()

Implements io.undertow.server.handlers.accesslog.LogFileHeaderGenerator.generateHeader.

Annotations
@Override
io.undertow.server.handlers.accesslog back to summary

private Class ExtendedAccessLogParser.PatternTokenizer

extends Object
Class Inheritance
  • java.lang.Object
  • io.undertow.server.handlers.accesslog.ExtendedAccessLogParser.PatternTokenizer

Field Summary

Modifier and TypeField and Description
private StringBuilder
private boolean
private boolean
private StringReader
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

Field Detail

bufback to summary
private StringBuilder buf
endedback to summary
private boolean ended
parameterback to summary
private boolean parameter
srback to summary
private StringReader sr
subTokenback to summary
private boolean subToken

Constructor Detail

PatternTokenizerback to summary
pack-priv PatternTokenizer(String str)

Method Detail

getParameterback to summary
public String getParameter() throws IOException
getRemainsback to summary
public String getRemains() throws IOException
getTokenback to summary
public String getToken() throws IOException
getWhiteSpacesback to summary
public String getWhiteSpaces() throws IOException
hasParameterback to summary
public boolean hasParameter()
hasSubTokenback to summary
public boolean hasSubToken()
isEndedback to summary
public boolean isEnded()