All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.joinedworkz.common.info.ResponseInfo Maven / Gradle / Ivy

There is a newer version: 1.3.46
Show newest version
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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy