1 /*******************************************************************************
2 * Copyright (c) 2017 Politecnico di Torino and others.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Apache License, Version 2.0
6 * which accompanies this distribution, and is available at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *******************************************************************************/
10 package it.polito.nffg.neo4j.jaxb;
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlRootElement;
16 import javax.xml.bind.annotation.XmlSchemaType;
17 import javax.xml.bind.annotation.XmlType;
21 * <p>Java class for anonymous complex type.
22 * <p>The following schema fragment specifies the expected content contained within this class.
26 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
28 * <element name="statusCode" type="{http://www.w3.org/2001/XMLSchema}unsignedShort"/>
29 * <element name="reasonPhrase" type="{http://www.w3.org/2001/XMLSchema}string"/>
30 * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
33 * </complexContent>
37 @XmlAccessorType(XmlAccessType.FIELD)
38 @XmlType(name = "", propOrder = {
43 @XmlRootElement(name = "httpMessage", namespace = "http://www.example.org/response/")
44 public class HttpMessage {
46 @XmlElement(namespace = "http://www.example.org/response/", defaultValue = "500")
47 @XmlSchemaType(name = "unsignedShort")
48 protected int statusCode;
49 @XmlElement(namespace = "http://www.example.org/response/", required = true, defaultValue = "Internal Server Error")
50 protected String reasonPhrase;
51 @XmlElement(namespace = "http://www.example.org/response/")
52 protected String message;
55 * Gets the value of the statusCode property.
57 public int getStatusCode() {
62 * Sets the value of the statusCode property.
64 public void setStatusCode(int value) {
65 this.statusCode = value;
69 * Gets the value of the reasonPhrase property.
74 public String getReasonPhrase() {
79 * Sets the value of the reasonPhrase property.
84 public void setReasonPhrase(String value) {
85 this.reasonPhrase = value;
89 * Gets the value of the message property.
94 public String getMessage() {
99 * Sets the value of the message property.
104 public void setMessage(String value) {
105 this.message = value;