Package de.dlr.proseo.basewrap.rest
Class HttpResponseInfo
java.lang.Object
de.dlr.proseo.basewrap.rest.HttpResponseInfo
A class to hold information extracted from a HTTP response.
- Author:
- Hubert Asamer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the HTTP codeGets the HTTP responseGets the HTTP warningvoidsethttpCode(int code) Sets the HTTP codevoidsethttpResponse(String response) Sets the HTTP responsevoidsetHttpWarning(String httpWarning) Sets the HTTP warning
-
Constructor Details
-
HttpResponseInfo
public HttpResponseInfo()
-
-
Method Details
-
gethttpCode
public int gethttpCode()Gets the HTTP code- Returns:
- the HTTP code
-
sethttpCode
public void sethttpCode(int code) Sets the HTTP code- Parameters:
code- the HTTP code
-
getHttpWarning
Gets the HTTP warning- Returns:
- the HTTP warning
-
setHttpWarning
Sets the HTTP warning- Parameters:
httpWarning- the HTTP warning
-
gethttpResponse
Gets the HTTP response- Returns:
- the HTTP response
-
sethttpResponse
Sets the HTTP response- Parameters:
response- the HTTP response
-