public class HTTPUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MA_HTTP_REQ_TYPE |
static String |
MA_HTTP_REQ_URL |
Constructor and Description |
---|
HTTPUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getHTTPResponseMessage(int responseCode) |
static byte[] |
readData(InputStream inStream,
OutputStream outStream,
Message msg) |
static String[] |
readRequest(InputStream in) |
static void |
sendHTTPResponse(OutputStream out,
int responseCode,
boolean hasData) |
public static final String MA_HTTP_REQ_TYPE
public static final String MA_HTTP_REQ_URL
public static String getHTTPResponseMessage(int responseCode)
public static byte[] readData(InputStream inStream, OutputStream outStream, Message msg) throws IOException, javax.mail.MessagingException
IOException
javax.mail.MessagingException
public static String[] readRequest(InputStream in) throws IOException
IOException
public static void sendHTTPResponse(OutputStream out, int responseCode, boolean hasData) throws IOException
IOException
Copyright © 2017. All rights reserved.