public abstract class HeaderParser extends Object
Constructor and Description |
---|
HeaderParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract RawCookieData |
createCookie(String cookie) |
List<RawCookieData> |
createRawCookieDataList(String cookieHeader)
This function receives a cookie from the cookie http header, parses it and returns all the available px cookies in a linked list.
|
protected static CookieVersion |
getCookieVersion(String version) |
protected static boolean |
isValidPxCookie(String version) |
protected abstract String[] |
splitHeader(String header) |
protected abstract RawCookieData createCookie(String cookie)
public List<RawCookieData> createRawCookieDataList(String cookieHeader)
cookieHeader
- Should contain the cookie(or cookies) that needs to be parsed into RawCookieData, can be null or emptyprotected static CookieVersion getCookieVersion(String version)
protected static boolean isValidPxCookie(String version)
Copyright © 2018 PerimeterX. All rights reserved.