@Component public class GluePushActivity extends GlueActivity<GlueContext>
- url : Push Server url - channel : channel 이름 - sender : 전송자 이름 - push-message : 전송 메세지다음은 activity 사용 예시 입니다.
<activity name="push-test" class="com.poscoict.glueframework.push.activity.GluePushActivity">
<transition name="success" value="end" />
<property name="url" value="push-server-url" />
<property name="channel" value="channelValue" />
<property name="sender" value="push-sender-name" />
<property name="message" value="push-message" />
</activity>
Activity 사용 예와 관련된 PushSendTest 함수 입니다.
public void PushSendTest(String url, String message) {
GlueDefaultContext ctx = new GlueDefaultContext("ucube-service");
ctx.put("push-server-url", "ws://127.0.0.1:9090/push");
ctx.put("push-sender-name", "JeaHwan");
ctx.put("push-message", message);
bizController.doAction(ctx);
}
Modifier and Type | Field and Description |
---|---|
protected static String |
CHANNEL
property : url
|
protected static String |
MESSAGE
property : message
|
protected static String |
SENDER
property : sender
|
protected static String |
URL
property : url
|
protected static String |
USE_SOCK_JS
property : useSockJs
|
applicationContext, FAILURE, logger, RESULT_KEY, RESULT_KEY_POSTFIX, SUCCESS
Constructor and Description |
---|
GluePushActivity() |
Modifier and Type | Method and Description |
---|---|
String |
runActivity(GlueContext ctx)
abstract method.
|
checkMethodName, destroy, getMethod, getParamCount, getRequiredType, getResultKey, init, makeMethodParamTypes
protected static final String URL
protected static final String CHANNEL
protected static final String USE_SOCK_JS
protected static final String SENDER
protected static final String MESSAGE
public String runActivity(GlueContext ctx)
GlueActivity
runActivity
in class GlueActivity<GlueContext>
Copyright © 2019 POSCOICT. All rights reserved.