public class MovableTypeApiConnection extends Object
| コンストラクタと説明 |
|---|
MovableTypeApiConnection() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addBodyPart(String body)
addBodyPart
|
void |
addRequestProperty(String key,
String value) |
void |
connect() |
void |
connectUrl(String url)
connectUrl
|
void |
disconnect() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
String |
getResponseBody()
getResponseBody
|
int |
getResponseCode() |
String |
getResponseMessage() |
String |
getUserAgent()
getUserAgent
|
void |
setBasicAuthentication(String authUsername,
String authPassword)
setBasicAuthentication
|
void |
setDoInput(boolean doinput) |
void |
setDoOutput(boolean dooutput) |
void |
setRequestMethod(String method) |
void |
setRequestProperty(String key,
String value) |
void |
setToken(Token token)
setToken
|
void |
setUseCaches(boolean cache) |
public void connectUrl(String url) throws IOException, NoSuchAlgorithmException, KeyManagementException
url - IOExceptionNoSuchAlgorithmExceptionKeyManagementExceptionpublic void setToken(Token token)
token - public void setBasicAuthentication(String authUsername, String authPassword)
authUsername - authPassword - public String getResponseBody() throws IOException
IOExceptionpublic void addBodyPart(String body) throws IOException
body - IOExceptionpublic String getUserAgent()
public void setRequestMethod(String method) throws ProtocolException
public void connect()
throws IOException
IOExceptionpublic void disconnect()
throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
IOExceptionpublic int getResponseCode()
throws IOException
IOExceptionpublic OutputStream getOutputStream() throws IOException
IOExceptionpublic String getResponseMessage() throws IOException
IOExceptionpublic void setDoOutput(boolean dooutput)
public void setUseCaches(boolean cache)
public void setDoInput(boolean doinput)
Copyright © 2017. All rights reserved.