/** * This is used to determine if the request method was HEAD. This * is of particular interest in a HTTP conversation as it tells * the response whether a response body is to be sent or not. * If the method is head the delimeters for the response should * be as they would be for a similar GET, however no body is sent. * * @return true if the request method was a HEAD method */ public boolean isHead() { String method = request.getMethod(); if(method == null) { return false; } return method.equalsIgnoreCase(HEAD); }
/** * This is used to determine if the request method was HEAD. This * is of particular interest in a HTTP conversation as it tells * the response whether a response body is to be sent or not. * If the method is head the delimeters for the response should * be as they would be for a similar GET, however no body is sent. * * @return true if the request method was a HEAD method */ public boolean isHead() { String method = request.getMethod(); if(method != null) { return method.equalsIgnoreCase(HEAD); } return false; }
/** * This is used to determine if the request method was HEAD. This * is of particular interest in a HTTP conversation as it tells * the response whether a response body is to be sent or not. * If the method is head the delimeters for the response should * be as they would be for a similar GET, however no body is sent. * * @return true if the request method was a HEAD method */ public boolean isHead() { String method = request.getMethod(); if(method != null) { return method.equalsIgnoreCase(HEAD); } return false; }
/** * This is used to determine if the method was a CONNECT. The * connect method is typically used when a client wishes to * establish a connection directly with an origin server. Such a * direct connection is useful when using TLS as it ensures there * is not man in the middle with respect to key exchanges. * * @return this returns true if the method was a CONNECT method */ public boolean isConnect() { String method = request.getMethod(); if(method != null) { return method.equalsIgnoreCase(CONNECT); } return false; }
/** * This is used to determine if the method was a CONNECT. The * connect method is typically used when a client wishes to * establish a connection directly with an origin server. Such a * direct connection is useful when using TLS as it ensures there * is not man in the middle with respect to key exchanges. * * @return this returns true if the method was a CONNECT method */ public boolean isConnect() { String method = request.getMethod(); if(method != null) { return method.equalsIgnoreCase(CONNECT); } return false; }