CPD Results

The following document contains the results of PMD's CPD 4.1.

Duplications

File Line
eu/europa/tmsearch/services/resources/TradeMarkImageResource.java 112
eu/europa/tmsearch/services/resources/TradeMarkThumbnailResource.java 115
	this.setExpires(this.getTradeMarkThumbnailService().getExpires(tradeMarkId));

	return Response.ok(image).lastModified(this.getLastModified()).expires(this.getExpires()).tag(
		this.getETagGenerator().getETag()).build();
    }

    public Request getRequest() {
	return request;
    }

    public void setRequest(Request request) {
	this.request = request;
    }

    public UriInfo getUriInfo() {
	return uriInfo;
    }

    public void setUriInfo(UriInfo uriInfo) {
	this.uriInfo = uriInfo;
    }

    public HttpHeaders getHttpHeaders() {
	return httpHeaders;
    }

    public void setHttpHeaders(HttpHeaders httpHeaders) {
	this.httpHeaders = httpHeaders;
    }

    public TradeMarkThumbnailService getTradeMarkThumbnailService() {

File Line
eu/europa/tmsearch/services/resources/ApplicantResource.java 191
eu/europa/tmsearch/services/resources/RepresentativeResource.java 195
	transactionDataType.setRepresentativeDetails(representativeDetails);
	TransactionContentDetails transactionContentDetails = new TransactionContentDetails();
	transactionContentDetails.setTransactionCode(TMSearchTransactionCodeType.fromValue(transactionCode));
	transactionContentDetails.setTransactionData(transactionDataType);
	TransactionBodyType transactionBodyType = new TransactionBodyType();
	transactionBodyType.setTransactionContentDetails(transactionContentDetails);

	SenderDetails senderDetails = new SenderDetails();
	TransactionHeaderType transactionHeaderType = new TransactionHeaderType();
	transactionHeaderType.setSenderDetails(senderDetails);
	Transaction transaction = new Transaction();
	transaction.setTradeMarkTransactionBody(transactionBodyType);
	transaction.setTransactionHeader(transactionHeaderType);

	XMLGregorianCalendar dateTimeStamp = getDateTimeStamp(getLastModified());
	transactionContentDetails.setTransactionIdentifier(uriInfo.getAbsolutePath().toString());
	senderDetails.setRequestProducerDateTime(dateTimeStamp);
	return transaction;
    }

}

File Line
eu/europa/tmsearch/services/resources/RepresentativeResource.java 139
eu/europa/tmsearch/services/resources/TradeMarkImageResource.java 114
	return Response.ok(image).lastModified(this.getLastModified()).expires(this.getExpires()).tag(
		this.getETagGenerator().getETag()).build();
    }

    public Request getRequest() {
	return request;
    }

    public void setRequest(Request request) {
	this.request = request;
    }

    public UriInfo getUriInfo() {
	return uriInfo;
    }

    public void setUriInfo(UriInfo uriInfo) {
	this.uriInfo = uriInfo;
    }

    public HttpHeaders getHttpHeaders() {
	return httpHeaders;
    }

    public void setHttpHeaders(HttpHeaders httpHeaders) {
	this.httpHeaders = httpHeaders;
    }

    public TradeMarkImageService getTradeMarkImageService() {