📄 cwsppushmanager.java
字号:
/**
* JWAP - A Java Implementation of the WAP Protocols
* Copyright (C) 2001-2004 Niko Bender
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package net.sourceforge.jwap.wsp;
import net.sourceforge.jwap.wsp.pdu.CWSPHeaders;
import net.sourceforge.jwap.wsp.pdu.CWSPPDU;
import net.sourceforge.jwap.wtp.CWTPEvent;
import net.sourceforge.jwap.wtp.IWTPUpperLayer;
public class CWSPPushManager implements IWTPUpperLayer {
private CWSPSession session;
public CWSPPushManager(CWSPPDU initpdu, CWSPSession session) {
this.session = session;
}
/**
* used by *WSP* layer
* @param reason
*/
public void abort(short reason) {
/** @todo abort by wsp */
}
/**
* S-ConfirmedPush.res
*/
public synchronized void s_confirmedPush(byte[] data, String contentType,
CWSPHeaders exitInfoAckHeaders) {
if (session.getState() == CWSPSession.STATE_CONNECTED) {
/** @todo implement s-confirmedPush.res */
}
}
/**
* S-PushAbort.req
*
* @param reason Abort reason defined in class CWTPAbort
* @return S-PushAbort.ind
*/
public synchronized boolean s_pushAbort(short reason) {
if (session.getState() == CWSPSession.STATE_CONNECTED) {
}
return false;
}
public void tr_process(CWTPEvent p) {
/**@todo: Diese mmsjua.wap.wtp.IWTPUpperLayer-Methode implementieren*/
throw new java.lang.UnsupportedOperationException(
"Methode process() noch nicht implementiert.");
}
/**
* used by *WTP* layer
* @param abortReason
*/
public void tr_abort(short abortReason) {
/**@todo: Diese mmsjua.wap.wtp.IWTPUpperLayer-Methode implementieren*/
throw new java.lang.UnsupportedOperationException(
"Methode abort() noch nicht implementiert.");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -