當前位置: 首頁>>代碼示例>>Java>>正文


Java Request類代碼示例

本文整理匯總了Java中com.allaire.cfx.Request的典型用法代碼示例。如果您正苦於以下問題:Java Request類的具體用法?Java Request怎麽用?Java Request使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Request類屬於com.allaire.cfx包,在下文中一共展示了Request類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: processRequest

import com.allaire.cfx.Request; //導入依賴的package包/類
/**
 * @see com.allaire.cfx.CustomTag#processRequest(com.allaire.cfx.Request, com.allaire.cfx.Response)
 */
public void processRequest(Request request, Response response) throws Exception {
    
    if(request.attributeExists("name"))
        response.write("hello "+request.getAttribute("name"));
    else
        response.write("hello");
}
 
開發者ID:lucee,項目名稱:Lucee4,代碼行數:11,代碼來源:HelloWorld.java

示例2: processRequest

import com.allaire.cfx.Request; //導入依賴的package包/類
/**
 * @see com.allaire.cfx.CustomTag#processRequest(com.allaire.cfx.Request,
 *      com.allaire.cfx.Response)
 */
@Override
public void processRequest(final Request request, final Response response)
		throws Exception {

	if (request.attributeExists("name"))
		response.write("hello " + request.getAttribute("name"));
	else
		response.write("hello");
}
 
開發者ID:lucee,項目名稱:Lucee,代碼行數:14,代碼來源:HelloWorld.java

示例3: processRequest

import com.allaire.cfx.Request; //導入依賴的package包/類
public void processRequest(Request request, Response response) throws Exception {
	
	processRequest.invoke(null, new Object[]{serverLibrary, procedure, request, response, keepAlive});
	//CFXNativeLib.processRequest(serverLibrary, procedure, request, response, keepAlive);
}
 
開發者ID:lucee,項目名稱:Lucee4,代碼行數:6,代碼來源:CPPCustomTag.java

示例4: processRequest

import com.allaire.cfx.Request; //導入依賴的package包/類
@Override
public void processRequest(Request request, Response response) throws Exception {
	
	processRequest.invoke(null, new Object[]{serverLibrary, procedure, request, response, keepAlive});
	//CFXNativeLib.processRequest(serverLibrary, procedure, request, response, keepAlive);
}
 
開發者ID:lucee,項目名稱:Lucee,代碼行數:7,代碼來源:CPPCustomTag.java

示例5: processRequest

import com.allaire.cfx.Request; //導入依賴的package包/類
public void processRequest( Request request, Response response ) 		
   throws Exception
{
   String strName = request.getAttribute( "NAME" ) ;
   response.write( "Hello, " + strName ) ;
}
 
開發者ID:OpenBD,項目名稱:openbd-core,代碼行數:7,代碼來源:HelloColdFusion.java

示例6: processRequest

import com.allaire.cfx.Request; //導入依賴的package包/類
public void processRequest(Request request, Response response) throws Exception {
	response.write("<h3>Hello! Welcome to BlueDragon from a Java CFX tag.</h3>");
}
 
開發者ID:OpenBD,項目名稱:openbd-core,代碼行數:4,代碼來源:BlueDragonHello.java


注:本文中的com.allaire.cfx.Request類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。