question: @ Override public void validate ( final Cookie cookie , final CookieOrigin origin ) throws MalformedCookieException { if ( cookie == null ) { throw new IllegalArgumentException ( "Cookie may not be null" ) ; } if ( origin == null ) { throw new IllegalArgumentException ( "Cookie origin may not be null" ) ; } if ( cookie instanceof Cookie2 ) { final Cookie2 cookie2 = ( Cookie2 ) cookie ; final int port = origin . getPort ( ) ; if ( cookie2 . isPortAttributeSpecified ( ) ) { if ( ! portMatch ( port , cookie2 . getPorts ( ) ) ) { throw new MalformedCookieException ( "Port attribute violates RFC 2965: " + "Request port not found in cookie's port list." ) ; } } } }
target:  Validate cookie port attribute. If the Port attribute was specified in header, the request port must be in cookie's port list.