public.javadoc.org.spincast.plugins.httpclient.IHttpResponse.html Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of spincast-website Show documentation
                Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
                
            
IHttpResponse (org.spincast:spincast-framework 0.9.21 API) 
org.spincast.plugins.httpclient
Interface IHttpResponse
- 
- All Known Implementing Classes:
 
- SpincastHttpResponse
 
public interface IHttpResponse
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods  
Modifier and Type 
Method and Description 
 
byte[] 
getContentAsByteArray()
Get the content as byte[].
 
 
String 
getContentAsString()
Gets the content as a UTF-8 String.
 
 
String 
getContentAsString(String encoding)
Gets the content as a String using the specified
 encoding.
 
 
String 
getContentType()
Gets the Content-Type.
 
 
ICookie 
getCookie(String name)
Gets a cookie.
 
 
Map<String,ICookie> 
getCookies()
Gets the cookies.
 
 
List<String> 
getHeader(String name)
Gets an header.
 
 
String 
getHeaderFirst(String name)
Gets the first value of an header.
 
 
Map<String,List<String>> 
getHeaders()
Gets the headers.
 
 
int 
getStatus()
Gets the HTTP status.
 
 
boolean 
isGzipped()
Is the response gzipped?
 
 
 
 
- 
- 
Method Detail
- 
getStatus
int getStatus()
Gets the HTTP status.
 
- 
getContentType
String getContentType()
Gets the Content-Type.
 
- 
getHeader
List<String> getHeader(String name)
Gets an header. An header can have more than 
 one value.
 
- 
isGzipped
boolean isGzipped()
Is the response gzipped?
 
- 
getContentAsString
String getContentAsString()
Gets the content as a UTF-8 String.
 
- 
getContentAsString
String getContentAsString(String encoding)
Gets the content as a String using the specified
 encoding.
 
- 
getContentAsByteArray
byte[] getContentAsByteArray()
Get the content as byte[].
 
 
 
Copyright © 2016. All rights reserved.
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy