Package com.streamconverter.command.impl
Class SendHttpCommand
java.lang.Object
com.streamconverter.command.AbstractStreamCommand
com.streamconverter.command.impl.SendHttpCommand
- All Implemented Interfaces:
IStreamCommand
指定された通信先にOutputStreamを送信するコマンドクラス。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
executeInternal
(InputStream inputStream, OutputStream outputStream) ストリームを指定されたURLに送信します。Methods inherited from class com.streamconverter.command.AbstractStreamCommand
execute, getCommandDetails
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.streamconverter.command.IStreamCommand
execute
-
Constructor Details
-
SendHttpCommand
デフォルトコンストラクタ- Parameters:
url
- 送信先のURL- Throws:
IllegalArgumentException
- URLが無効な場合
-
-
Method Details
-
executeInternal
protected void executeInternal(InputStream inputStream, OutputStream outputStream) throws IOException ストリームを指定されたURLに送信します。- Specified by:
executeInternal
in classAbstractStreamCommand
- Parameters:
inputStream
- 入力ストリームoutputStream
- 出力ストリーム- Throws:
IOException
- 入出力エラーが発生した場合
-