/** * This is used to extract information from the HTTP header that * can be used to determine the type of the body. This will look * at the HTTP headers provided to find a specific token which * enables it to determine how to consume the body. * * @param segment this is the header associated with the body * * @return true if the body is to be consumed as a chunked body */ protected boolean isChunked(Segment segment) { String encoding = segment.getTransferEncoding(); if(encoding != null) { if(encoding.equals(CHUNKED)) { return true; } } return false; }
/** * This is used to extract information from the HTTP header that * can be used to determine the type of the body. This will look * at the HTTP headers provided to find a specific token which * enables it to determine how to consume the body. * * @param segment this is the header associated with the body * * @return true if the body is to be consumed as a chunked body */ protected boolean isChunked(Segment segment) { String encoding = segment.getTransferEncoding(); if(encoding != null) { if(encoding.equals(CHUNKED)) { return true; } } return false; }
/** * This is used to extract information from the HTTP header that * can be used to determine the type of the body. This will look * at the HTTP headers provided to find a specific token which * enables it to determine how to consume the body. * * @param segment this is the header associated with the body * * @return true if the body is to be consumed as a chunked body */ protected boolean isChunked(Segment segment) { String encoding = segment.getTransferEncoding(); if(encoding != null) { if(encoding.equals(CHUNKED)) { return true; } } return false; }