A minimal implementation of AbstractConsumerService splitting tokens by whitespace.
Although the class doesn't have any abstract methods, it's defined as abstract because it doesn't define specific sub-consumers as constructor dependencies, and so is defined as abstract to avoid its direct use (use the concrete GenericConsumerService or GenericConsumerMimeLiteralPartService classes instead).
- author Zaahid Bateson
- Extends
- Children
- Implements
Methods |
Properties |
Methods |
protected getTokenSeparators() : array Returns the regex '\s+' (whitespace) pattern matcher as a token marker so the header value is split along whitespace characters.
|
protected isEndToken(string $token) : bool AbstractGenericConsumerService doesn't have start/end tokens, and so always returns false. |
protected isStartToken(string $token) : bool AbstractGenericConsumerService doesn't have start/end tokens, and so always returns false.
|
protected processParts(array $parts) : array Overridden to combine all part values into a single string and return it as an array with a single element. The returned IHeaderPart array consists of a single ContainerPart created out of all passed IHeaderParts.
|