本文整理匯總了Java中javax.xml.ws.Response類的典型用法代碼示例。如果您正苦於以下問題:Java Response類的具體用法?Java Response怎麽用?Java Response使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Response類屬於javax.xml.ws包,在下文中一共展示了Response類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getName
import javax.xml.ws.Response; //導入依賴的package包/類
@Override
public String getName() {
if (getMethod() == null) {
if (name == null) {
name = wadlMethod.getId();
if (name == null) {
name = wadlMethod.getName();
Set<String> medias = null;
if (GET.equals(name)) {
medias = new HashSet<String>();
for( org.netbeans.modules.websvc.saas.model.wadl.Response
response :wadlMethod.getResponse())
{
medias.addAll(SaasUtil.getMediaTypes(
response.getRepresentation()));
}
} else if (PUT.equals(name) || POST.equals(name)) {
medias = SaasUtil.getMediaTypes(
wadlMethod.getRequest().getRepresentation());
}
name = name.toLowerCase();
if (medias != null && medias.size() > 0) {
for (String m : medias) {
name += "_" + m;
}
name = name.replaceAll("\\W", "_").replaceAll("_+", "_").replaceAll("_$", "");
}
}
}
return name;
}
return super.getName();
}
示例2: getDisplayName
import javax.xml.ws.Response; //導入依賴的package包/類
@Override
public String getDisplayName() {
if (getMethod() == null) {
if (displayName == null) {
displayName = wadlMethod.getId();
if (displayName == null) {
displayName = wadlMethod.getName();
Set<String> medias = null;
if (GET.equals(displayName)) {
medias = new HashSet<String>();
for( org.netbeans.modules.websvc.saas.model.wadl.Response
response :wadlMethod.getResponse())
{
medias.addAll(SaasUtil.getMediaTypes(
response.getRepresentation()));
}
} else if (PUT.equals(displayName) || POST.equals(displayName)) {
medias = SaasUtil.getMediaTypes(
wadlMethod.getRequest().getRepresentation());
}
if (medias != null && medias.size() > 0) {
displayName += medias;
}
}
}
return displayName;
}
return super.getDisplayName();
}
示例3: changePositionAsync
import javax.xml.ws.Response; //導入依賴的package包/類
/**
*
* @param positionId
* @param employeeId
* @return
* returns javax.xml.ws.Response<ru.technoserv.ws.ChangePositionResponse>
*/
@WebMethod(operationName = "changePosition")
@RequestWrapper(localName = "changePosition", targetNamespace = "http://ws.technoserv.ru/", className = "ru.technoserv.ws.ChangePosition")
@ResponseWrapper(localName = "changePositionResponse", targetNamespace = "http://ws.technoserv.ru/", className = "ru.technoserv.ws.ChangePositionResponse")
public Response<ChangePositionResponse> changePositionAsync(
@WebParam(name = "employeeId", targetNamespace = "")
int employeeId,
@WebParam(name = "PositionId", targetNamespace = "")
int positionId);
示例4: changeGradeAsync
import javax.xml.ws.Response; //導入依賴的package包/類
/**
*
* @param gradeId
* @param employeeId
* @return
* returns javax.xml.ws.Response<ru.technoserv.ws.ChangeGradeResponse>
*/
@WebMethod(operationName = "changeGrade")
@RequestWrapper(localName = "changeGrade", targetNamespace = "http://ws.technoserv.ru/", className = "ru.technoserv.ws.ChangeGrade")
@ResponseWrapper(localName = "changeGradeResponse", targetNamespace = "http://ws.technoserv.ru/", className = "ru.technoserv.ws.ChangeGradeResponse")
public Response<ChangeGradeResponse> changeGradeAsync(
@WebParam(name = "employeeId", targetNamespace = "")
int employeeId,
@WebParam(name = "GradeId", targetNamespace = "")
int gradeId);
示例5: changeSalaryAsync
import javax.xml.ws.Response; //導入依賴的package包/類
/**
*
* @param employeeId
* @param salary
* @return
* returns javax.xml.ws.Response<ru.technoserv.ws.ChangeSalaryResponse>
*/
@WebMethod(operationName = "changeSalary")
@RequestWrapper(localName = "changeSalary", targetNamespace = "http://ws.technoserv.ru/", className = "ru.technoserv.ws.ChangeSalary")
@ResponseWrapper(localName = "changeSalaryResponse", targetNamespace = "http://ws.technoserv.ru/", className = "ru.technoserv.ws.ChangeSalaryResponse")
public Response<ChangeSalaryResponse> changeSalaryAsync(
@WebParam(name = "employeeId", targetNamespace = "")
int employeeId,
@WebParam(name = "Salary", targetNamespace = "")
BigDecimal salary);
示例6: doInvoke
import javax.xml.ws.Response; //導入依賴的package包/類
protected final Response<Object> doInvoke(Object proxy, Object[] args, AsyncHandler handler) {
AsyncInvoker invoker = new SEIAsyncInvoker(proxy, args);
invoker.setNonNullAsyncHandlerGiven(handler != null);
AsyncResponseImpl<Object> ft = new AsyncResponseImpl<Object>(invoker,handler);
invoker.setReceiver(ft);
ft.run();
return ft;
}
示例7: invokeAsync
import javax.xml.ws.Response; //導入依賴的package包/類
public final Response<T> invokeAsync(T param) {
Container old = ContainerResolver.getDefault().enterContainer(owner.getContainer());
try {
if (LOGGER.isLoggable(Level.FINE)) {
dumpParam(param, "invokeAsync(T)");
}
AsyncInvoker invoker = new DispatchAsyncInvoker(param);
AsyncResponseImpl<T> ft = new AsyncResponseImpl<T>(invoker,null);
invoker.setReceiver(ft);
ft.run();
return ft;
} finally {
ContainerResolver.getDefault().exitContainer(old);
}
}
示例8: avisoEntradasAsync
import javax.xml.ws.Response; //導入依賴的package包/類
@ResponseWrapper(localName = "avisoEntradasResponse", targetNamespace = "urn:es:caib:bantel:ws:v1:model:BantelFacade", className = "es.caib.bantel.wsClient.v1.model.AvisoEntradasResponse")
@RequestWrapper(localName = "avisoEntradas", targetNamespace = "urn:es:caib:bantel:ws:v1:model:BantelFacade", className = "es.caib.bantel.wsClient.v1.model.AvisoEntradas")
@WebMethod(operationName = "avisoEntradas")
public Response<es.caib.bantel.wsClient.v1.model.AvisoEntradasResponse> avisoEntradasAsync(
@WebParam(name = "numeroEntradas", targetNamespace = "urn:es:caib:bantel:ws:v1:model:BantelFacade")
es.caib.bantel.wsClient.v1.model.ReferenciasEntrada numeroEntradas
);
示例9: avisoEntradasAsync
import javax.xml.ws.Response; //導入依賴的package包/類
@ResponseWrapper(localName = "avisoEntradasResponse", targetNamespace = "urn:es:caib:bantel:ws:v2:model:BantelFacade", className = "es.caib.bantel.wsClient.v2.model.AvisoEntradasResponse")
@RequestWrapper(localName = "avisoEntradas", targetNamespace = "urn:es:caib:bantel:ws:v2:model:BantelFacade", className = "es.caib.bantel.wsClient.v2.model.AvisoEntradas")
@WebMethod(operationName = "avisoEntradas")
public Response<es.caib.bantel.wsClient.v2.model.AvisoEntradasResponse> avisoEntradasAsync(
@WebParam(name = "numeroEntradas", targetNamespace = "urn:es:caib:bantel:ws:v2:model:BantelFacade")
es.caib.bantel.wsClient.v2.model.ReferenciasEntrada numeroEntradas
);
示例10: handleResponse
import javax.xml.ws.Response; //導入依賴的package包/類
@Override
public void handleResponse(Response<T> res) {
try {
processResponse(res.get());
} catch (Exception e) {
processException(e);
}
}
示例11: getPIArchiveDataAsync
import javax.xml.ws.Response; //導入依賴的package包/類
/**
*
* @param requests
* @return
* returns javax.xml.ws.Response<com.osisoft.xml.services.pidataservice.GetPIArchiveDataResponse>
*/
@WebMethod(operationName = "GetPIArchiveData", action = "http://xml.osisoft.com/services/IPITimeSeries/GetPIArchiveData")
@RequestWrapper(localName = "GetPIArchiveData", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.GetPIArchiveData")
@ResponseWrapper(localName = "GetPIArchiveDataResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.GetPIArchiveDataResponse")
public Response<GetPIArchiveDataResponse> getPIArchiveDataAsync(
@WebParam(name = "requests", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
ArrayOfPIArcDataRequest requests);
示例12: getPIUpdatesAsync
import javax.xml.ws.Response; //導入依賴的package包/類
/**
*
* @param evtFilter
* @param maxWaitForUpdates
* @param updateTicket
* @return
* returns javax.xml.ws.Response<com.osisoft.xml.services.pidataservice.GetPIUpdatesResponse>
*/
@WebMethod(operationName = "GetPIUpdates", action = "http://xml.osisoft.com/services/IPITimeSeries/GetPIUpdates")
@RequestWrapper(localName = "GetPIUpdates", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.GetPIUpdates")
@ResponseWrapper(localName = "GetPIUpdatesResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.GetPIUpdatesResponse")
public Response<GetPIUpdatesResponse> getPIUpdatesAsync(
@WebParam(name = "updateTicket", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
String updateTicket,
@WebParam(name = "maxWaitForUpdates", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
int maxWaitForUpdates,
@WebParam(name = "evtFilter", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
UpdateFilterType evtFilter);
示例13: signUpForPIUpdatesAsync
import javax.xml.ws.Response; //導入依賴的package包/類
/**
*
* @param paths
* @param expiration
* @return
* returns javax.xml.ws.Response<com.osisoft.xml.services.pidataservice.SignUpForPIUpdatesResponse>
*/
@WebMethod(operationName = "SignUpForPIUpdates", action = "http://xml.osisoft.com/services/IPITimeSeries/SignUpForPIUpdates")
@RequestWrapper(localName = "SignUpForPIUpdates", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.SignUpForPIUpdates")
@ResponseWrapper(localName = "SignUpForPIUpdatesResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.SignUpForPIUpdatesResponse")
public Response<SignUpForPIUpdatesResponse> signUpForPIUpdatesAsync(
@WebParam(name = "paths", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
ArrayOfString paths,
@WebParam(name = "expiration", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
int expiration);
示例14: cancelSignUpForPIUpdatesAsync
import javax.xml.ws.Response; //導入依賴的package包/類
/**
*
* @param updateTicket
* @return
* returns javax.xml.ws.Response<com.osisoft.xml.services.pidataservice.CancelSignUpForPIUpdatesResponse>
*/
@WebMethod(operationName = "CancelSignUpForPIUpdates", action = "http://xml.osisoft.com/services/IPITimeSeries/CancelSignUpForPIUpdates")
@RequestWrapper(localName = "CancelSignUpForPIUpdates", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.CancelSignUpForPIUpdates")
@ResponseWrapper(localName = "CancelSignUpForPIUpdatesResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.CancelSignUpForPIUpdatesResponse")
public Response<CancelSignUpForPIUpdatesResponse> cancelSignUpForPIUpdatesAsync(
@WebParam(name = "updateTicket", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
String updateTicket);
示例15: listPathsByUpdateTicketAsync
import javax.xml.ws.Response; //導入依賴的package包/類
/**
*
* @param updateTicket
* @return
* returns javax.xml.ws.Response<com.osisoft.xml.services.pidataservice.ListPathsByUpdateTicketResponse>
*/
@WebMethod(operationName = "ListPathsByUpdateTicket", action = "http://xml.osisoft.com/services/IPITimeSeries/ListPaths")
@RequestWrapper(localName = "ListPathsByUpdateTicket", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.ListPathsByUpdateTicket")
@ResponseWrapper(localName = "ListPathsByUpdateTicketResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.ListPathsByUpdateTicketResponse")
public Response<ListPathsByUpdateTicketResponse> listPathsByUpdateTicketAsync(
@WebParam(name = "updateTicket", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
String updateTicket);