Package systextil.bo.inte.gra
Record Class GraRule.RespostaGra
java.lang.Object
java.lang.Record
systextil.bo.inte.gra.GraRule.RespostaGra
- Record Components:
http- codigo HTTP; -1 quando o GRA nao respondeu (rede, tempo esgotado ou URL nao configurada), o mesmo codigo que a fila de pedidos e notas gravacorpo- corpo da resposta, ou o motivo da falha quando nao houve resposta
- Enclosing class:
GraRule
Resposta de uma chamada a API do GRA.
-
Constructor Summary
ConstructorsConstructorDescriptionRespostaGra(int http, String corpo) Creates an instance of aRespostaGrarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncorpo()Returns the value of thecorporecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inthttp()Returns the value of thehttprecord component.booleanok()booleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
ok
public boolean ok() -
semResposta
public boolean semResposta() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
http
public int http()Returns the value of thehttprecord component.- Returns:
- the value of the
httprecord component
-
corpo
Returns the value of thecorporecord component.- Returns:
- the value of the
corporecord component
-