Interface IRequestHandler
-
- All Known Implementing Classes:
ApiExceptionRequestHandler
,AuthRequestHandler
,DebugLogRequestHandler
public interface IRequestHandler
Request handler interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
beforeSend(HttpURLConnection connection, OutputStream streamToSend)
Processes parameters before sending.void
processResponse(HttpURLConnection connection, byte[] resultData)
Processes the response.String
processUrl(String url)
Processes the URL.
-
-
-
Method Detail
-
processUrl
String processUrl(String url) throws IllegalArgumentException, URISyntaxException, IOException, Exception
Processes the URL.- Parameters:
url
- The URL.- Returns:
- Processed URL.
- Throws:
URISyntaxException
IllegalArgumentException
IOException
Exception
-
beforeSend
void beforeSend(HttpURLConnection connection, OutputStream streamToSend) throws Exception
Processes parameters before sending.- Parameters:
connection
- The connection.streamToSend
- The stream to send.- Throws:
Exception
-
processResponse
void processResponse(HttpURLConnection connection, byte[] resultData) throws IOException, Exception
Processes the response.- Parameters:
connection
- The connection.resultData
- The result data.- Throws:
IOException
Exception
-
-