org.joinedworkz.common.info.ResponseInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-base Show documentation
Show all versions of common-base Show documentation
DSL based modeling framework - facilities common base
package org.joinedworkz.common.info;
import org.eclipse.xtend.lib.annotations.Accessors;
import org.eclipse.xtext.xbase.lib.Pure;
import org.joinedworkz.core.model.CmnComplexType;
import org.joinedworkz.core.model.CmnContent;
import org.joinedworkz.core.model.CmnResourceOperation;
import org.joinedworkz.core.model.CmnResponse;
@Accessors
@SuppressWarnings("all")
public class ResponseInfo {
private final CmnResourceOperation operation;
private final CmnResponse response;
private CmnComplexType responseContext;
private String responseWrapper;
private CmnComplexType errorResponse;
public CmnContent getContent() {
CmnContent _content = null;
if (this.response!=null) {
_content=this.response.getContent();
}
return _content;
}
public ResponseInfo(final CmnResourceOperation operation, final CmnResponse response) {
super();
this.operation = operation;
this.response = response;
}
@Pure
public CmnResourceOperation getOperation() {
return this.operation;
}
@Pure
public CmnResponse getResponse() {
return this.response;
}
@Pure
public CmnComplexType getResponseContext() {
return this.responseContext;
}
public void setResponseContext(final CmnComplexType responseContext) {
this.responseContext = responseContext;
}
@Pure
public String getResponseWrapper() {
return this.responseWrapper;
}
public void setResponseWrapper(final String responseWrapper) {
this.responseWrapper = responseWrapper;
}
@Pure
public CmnComplexType getErrorResponse() {
return this.errorResponse;
}
public void setErrorResponse(final CmnComplexType errorResponse) {
this.errorResponse = errorResponse;
}
}