public class RunnerRestCloudDeploy extends RunnerRestCloud
Modifier and Type | Field and Description |
---|---|
(package private) CommandCloudDeploy |
command
Holding data for command execution.
|
private String |
multipartBoundary |
private static String |
NEWLINE |
result
HTTP_CONNECTION_TIMEOUT, HTTP_RETRY_DELAY, path, server, silentFailureAllowed, stateListeners
Constructor and Description |
---|
RunnerRestCloudDeploy(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface for deploy command.
|
Modifier and Type | Method and Description |
---|---|
protected void |
handleSend(HttpURLConnection hconn)
Handle sending data to server using HTTP command interface.
|
private void |
writeBinaryFile(OutputStreamWriter writer,
OutputStream output,
File file) |
private void |
writeParam(OutputStreamWriter writer,
String paramName,
String paramValue) |
acceptsGzip, appendIfNotEmpty, appendProperties, constructCommandUrl, createResult, getDoOutput, getRequestMethod, getResponseType, prepareHttpConnection, processResponse, readResponse
call, getContentType, getResult, handleReceive, handleSecureConnection, isSilentFailureAllowed, setReadyState, setSilentFailureAllowed, setStateListeners
private static final String NEWLINE
private String multipartBoundary
final CommandCloudDeploy command
public RunnerRestCloudDeploy(GlassFishServer server, Command command)
server
- GlassFish server entity object.command
- GlassFish server administration command entity.query
- Query string for this command.protected void handleSend(HttpURLConnection hconn) throws IOException
CLIRemoteCommand.java
from the server's code repository. Since some asadmin commands
need to send multiple files, the server assumes the input is a ZIP
stream.handleSend
in class RunnerRest
IOException
private void writeParam(OutputStreamWriter writer, String paramName, String paramValue) throws IOException
IOException
private void writeBinaryFile(OutputStreamWriter writer, OutputStream output, File file) throws IOException
IOException
Copyright © 2013. All Rights Reserved.