private boolean equalTo(ImmutablePostSubmitFormRequest another) { return referer.equals(another.referer) && postParameters.equals(another.postParameters) && Objects.equals(path, another.path) && Objects.equals(server, another.server) && httpMethod.equals(another.httpMethod) && parameters.equals(another.parameters) && extractors.equals(another.extractors) && validators.equals(another.validators) && headers.equals(another.headers) && Objects.equals(contentType, another.contentType) && Objects.equals(recordedFiles, another.recordedFiles) && name.equals(another.name) && Objects.equals(description, another.description); }
/** * Computes a hash code from attributes: {@code data}, {@code postParameters}, {@code path}, {@code server}, {@code httpMethod}, {@code parameters}, {@code extractors}, {@code validators}, {@code headers}, {@code contentType}, {@code recordedFiles}, {@code name}, {@code description}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + data.hashCode(); h += (h << 5) + postParameters.hashCode(); h += (h << 5) + Objects.hashCode(path); h += (h << 5) + Objects.hashCode(server); h += (h << 5) + httpMethod.hashCode(); h += (h << 5) + parameters.hashCode(); h += (h << 5) + extractors.hashCode(); h += (h << 5) + validators.hashCode(); h += (h << 5) + headers.hashCode(); h += (h << 5) + Objects.hashCode(contentType); h += (h << 5) + Objects.hashCode(recordedFiles); h += (h << 5) + name.hashCode(); h += (h << 5) + Objects.hashCode(description); return h; }
/** * Computes a hash code from attributes: {@code referer}, {@code postParameters}, {@code path}, {@code server}, {@code httpMethod}, {@code parameters}, {@code extractors}, {@code validators}, {@code headers}, {@code contentType}, {@code recordedFiles}, {@code name}, {@code description}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + referer.hashCode(); h += (h << 5) + postParameters.hashCode(); h += (h << 5) + Objects.hashCode(path); h += (h << 5) + Objects.hashCode(server); h += (h << 5) + httpMethod.hashCode(); h += (h << 5) + parameters.hashCode(); h += (h << 5) + extractors.hashCode(); h += (h << 5) + validators.hashCode(); h += (h << 5) + headers.hashCode(); h += (h << 5) + Objects.hashCode(contentType); h += (h << 5) + Objects.hashCode(recordedFiles); h += (h << 5) + name.hashCode(); h += (h << 5) + Objects.hashCode(description); return h; }
/** * Computes a hash code from attributes: {@code binaryData}, {@code postParameters}, {@code path}, {@code server}, {@code httpMethod}, {@code parameters}, {@code extractors}, {@code validators}, {@code headers}, {@code contentType}, {@code recordedFiles}, {@code name}, {@code description}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + Arrays.hashCode(binaryData); h += (h << 5) + postParameters.hashCode(); h += (h << 5) + Objects.hashCode(path); h += (h << 5) + Objects.hashCode(server); h += (h << 5) + httpMethod.hashCode(); h += (h << 5) + parameters.hashCode(); h += (h << 5) + extractors.hashCode(); h += (h << 5) + validators.hashCode(); h += (h << 5) + headers.hashCode(); h += (h << 5) + Objects.hashCode(contentType); h += (h << 5) + Objects.hashCode(recordedFiles); h += (h << 5) + name.hashCode(); h += (h << 5) + Objects.hashCode(description); return h; }
/** * Computes a hash code from attributes: {@code parts}, {@code postParameters}, {@code path}, {@code server}, {@code httpMethod}, {@code parameters}, {@code extractors}, {@code validators}, {@code headers}, {@code contentType}, {@code recordedFiles}, {@code name}, {@code description}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + parts.hashCode(); h += (h << 5) + postParameters.hashCode(); h += (h << 5) + Objects.hashCode(path); h += (h << 5) + Objects.hashCode(server); h += (h << 5) + httpMethod.hashCode(); h += (h << 5) + parameters.hashCode(); h += (h << 5) + extractors.hashCode(); h += (h << 5) + validators.hashCode(); h += (h << 5) + headers.hashCode(); h += (h << 5) + Objects.hashCode(contentType); h += (h << 5) + Objects.hashCode(recordedFiles); h += (h << 5) + name.hashCode(); h += (h << 5) + Objects.hashCode(description); return h; }
/** * Computes a hash code from attributes: {@code text}, {@code referer}, {@code path}, {@code server}, {@code httpMethod}, {@code parameters}, {@code extractors}, {@code validators}, {@code headers}, {@code contentType}, {@code recordedFiles}, {@code name}, {@code description}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + text.hashCode(); h += (h << 5) + referer.hashCode(); h += (h << 5) + Objects.hashCode(path); h += (h << 5) + Objects.hashCode(server); h += (h << 5) + httpMethod.hashCode(); h += (h << 5) + parameters.hashCode(); h += (h << 5) + extractors.hashCode(); h += (h << 5) + validators.hashCode(); h += (h << 5) + headers.hashCode(); h += (h << 5) + Objects.hashCode(contentType); h += (h << 5) + Objects.hashCode(recordedFiles); h += (h << 5) + name.hashCode(); h += (h << 5) + Objects.hashCode(description); return h; }
/** * Computes a hash code from attributes: {@code postParameters}, {@code path}, {@code server}, {@code httpMethod}, {@code parameters}, {@code extractors}, {@code validators}, {@code headers}, {@code contentType}, {@code recordedFiles}, {@code name}, {@code description}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + postParameters.hashCode(); h += (h << 5) + Objects.hashCode(path); h += (h << 5) + Objects.hashCode(server); h += (h << 5) + httpMethod.hashCode(); h += (h << 5) + parameters.hashCode(); h += (h << 5) + extractors.hashCode(); h += (h << 5) + validators.hashCode(); h += (h << 5) + headers.hashCode(); h += (h << 5) + Objects.hashCode(contentType); h += (h << 5) + Objects.hashCode(recordedFiles); h += (h << 5) + name.hashCode(); h += (h << 5) + Objects.hashCode(description); return h; }
/** * Computes a hash code from attributes: {@code path}, {@code server}, {@code httpMethod}, {@code parameters}, {@code extractors}, {@code validators}, {@code headers}, {@code contentType}, {@code recordedFiles}, {@code name}, {@code description}. * @return hashCode value */ @Override public int hashCode() { int h = 5381; h += (h << 5) + Objects.hashCode(path); h += (h << 5) + Objects.hashCode(server); h += (h << 5) + httpMethod.hashCode(); h += (h << 5) + parameters.hashCode(); h += (h << 5) + extractors.hashCode(); h += (h << 5) + validators.hashCode(); h += (h << 5) + headers.hashCode(); h += (h << 5) + Objects.hashCode(contentType); h += (h << 5) + Objects.hashCode(recordedFiles); h += (h << 5) + name.hashCode(); h += (h << 5) + Objects.hashCode(description); return h; }
private boolean equalTo(ImmutablePostMultipartRequest another) { return parts.equals(another.parts) && postParameters.equals(another.postParameters) && Objects.equals(path, another.path) && Objects.equals(server, another.server) && httpMethod.equals(another.httpMethod) && parameters.equals(another.parameters) && extractors.equals(another.extractors) && validators.equals(another.validators) && headers.equals(another.headers) && Objects.equals(contentType, another.contentType) && Objects.equals(recordedFiles, another.recordedFiles) && name.equals(another.name) && Objects.equals(description, another.description); }
private boolean equalTo(ImmutablePostBinaryRequest another) { return Arrays.equals(binaryData, another.binaryData) && postParameters.equals(another.postParameters) && Objects.equals(path, another.path) && Objects.equals(server, another.server) && httpMethod.equals(another.httpMethod) && parameters.equals(another.parameters) && extractors.equals(another.extractors) && validators.equals(another.validators) && headers.equals(another.headers) && Objects.equals(contentType, another.contentType) && Objects.equals(recordedFiles, another.recordedFiles) && name.equals(another.name) && Objects.equals(description, another.description); }
private boolean equalTo(ImmutablePostTextRequest another) { return data.equals(another.data) && postParameters.equals(another.postParameters) && Objects.equals(path, another.path) && Objects.equals(server, another.server) && httpMethod.equals(another.httpMethod) && parameters.equals(another.parameters) && extractors.equals(another.extractors) && validators.equals(another.validators) && headers.equals(another.headers) && Objects.equals(contentType, another.contentType) && Objects.equals(recordedFiles, another.recordedFiles) && name.equals(another.name) && Objects.equals(description, another.description); }
private boolean equalTo(ImmutableGetPlainRequest another) { return Objects.equals(path, another.path) && Objects.equals(server, another.server) && httpMethod.equals(another.httpMethod) && parameters.equals(another.parameters) && extractors.equals(another.extractors) && validators.equals(another.validators) && headers.equals(another.headers) && Objects.equals(contentType, another.contentType) && Objects.equals(recordedFiles, another.recordedFiles) && name.equals(another.name) && Objects.equals(description, another.description); }
protected void fillXML(final Document document, final Element xmlRequest, final Request theRequest) { xmlRequest.setAttribute(XML_ATTR_METHOD, theRequest.getHttpMethod().toString()); theRequest.getContentType().ifPresent(c -> xmlRequest.setAttribute(XML_ATTR_CONTENT_TYPE, c)); theRequest.getServer().ifPresent(server -> xmlRequest.setAttribute(XML_ATTR_SERV_UID, server.getName())); xmlRequest.setAttribute(XML_ATTR_ACTION_TYPE, String.valueOf(getActionType())); theRequest.getPath().ifPresent(path -> xmlRequest.setAttribute(XML_ATTR_PATH, path)); theRequest.getExtractors().forEach(extractElem -> ExtractorWriter.of(extractElem).writeXML(document, xmlRequest)); writeValidationSection(theRequest, document, xmlRequest); writeParameters(theRequest, document, xmlRequest); theRequest.getHeaders().forEach(header -> HeaderWriter.writeXML(document, xmlRequest, header)); }
private boolean equalTo(ImmutableGetFollowLinkRequest another) { return text.equals(another.text) && referer.equals(another.referer) && Objects.equals(path, another.path) && Objects.equals(server, another.server) && httpMethod.equals(another.httpMethod) && parameters.equals(another.parameters) && extractors.equals(another.extractors) && validators.equals(another.validators) && headers.equals(another.headers) && Objects.equals(contentType, another.contentType) && Objects.equals(recordedFiles, another.recordedFiles) && name.equals(another.name) && Objects.equals(description, another.description); }
/** * Get the used HTTP method in the LR request and return the corresponding model enum * @param method represent the LR function * @return the used request */ protected static Request.HttpMethod getMethod(final String leftBrace, final String rightBrace, MethodCall method) { try { return Request.HttpMethod.valueOf(getParameterValueWithName(leftBrace, rightBrace, method, "Method").orElse(DEFAULT_HTTP_METHOD.toString())); }catch(IllegalArgumentException e) { return DEFAULT_HTTP_METHOD; } }
private boolean equalTo(ImmutablePostFormRequest another) { return postParameters.equals(another.postParameters) && Objects.equals(path, another.path) && Objects.equals(server, another.server) && httpMethod.equals(another.httpMethod) && parameters.equals(another.parameters) && extractors.equals(another.extractors) && validators.equals(another.validators) && headers.equals(another.headers) && Objects.equals(contentType, another.contentType) && Objects.equals(recordedFiles, another.recordedFiles) && name.equals(another.name) && Objects.equals(description, another.description); }