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 String |
printHeaders(Enumeration<javax.mail.Header> hdrs,
String nameValueSeparator,
String valuePairSeparator) |
static byte[] |
readData(InputStream inStream,
OutputStream outStream,
Message msg) |
static byte[] |
readHTTP(InputStream inStream,
OutputStream outStream,
javax.mail.internet.InternetHeaders headerCache,
List<String> httpRequest) |
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[] readHTTP(InputStream inStream, OutputStream outStream, javax.mail.internet.InternetHeaders headerCache, List<String> httpRequest) throws IOException, javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionpublic static byte[] readData(InputStream inStream, OutputStream outStream, Message msg) throws IOException, javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionpublic static String[] readRequest(InputStream in) throws IOException
IOExceptionpublic static void sendHTTPResponse(OutputStream out, int responseCode, boolean hasData) throws IOException
IOExceptionpublic static String printHeaders(Enumeration<javax.mail.Header> hdrs, String nameValueSeparator, String valuePairSeparator)
Copyright © 2017. All rights reserved.