T - the generic typepublic class DefaultEntityTypeActionOperation<T> extends Object implements EntityTypeActionOperation<T>
| Constructor and Description |
|---|
DefaultEntityTypeActionOperation()
Instantiates a new default type action operation.
|
DefaultEntityTypeActionOperation(String name)
Instantiates a new default type action operation.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultEntityTypeActionOperation<T> |
addQueryParameter(String key,
String value)
Adds the query parameter.
|
javax.ws.rs.core.MediaType |
getAcceptType()
Get the MIME type that we're expecting the server to send back.
|
javax.ws.rs.core.MediaType |
getContentType()
Get the MIME type for the content that's being sent to the server.
|
EntityProxyData |
getProxyData() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getQueryParameters()
Gets the query parameters.
|
Object |
getRequestContents()
Gets the request contents.
|
String |
getUri()
Get the URI the creation request should be sent to.
|
String |
getVerb()
Gets the verb.
|
Object |
processResponse(Object rawResponse)
Process response process.
|
T |
processTypeResponse(com.sun.jersey.api.client.ClientResponse clientResponse)
Process type response.
|
EntityTypeActionOperation<T> |
setAcceptType(javax.ws.rs.core.MediaType acceptType)
Sets the accept type.
|
EntityTypeActionOperation<T> |
setContentType(javax.ws.rs.core.MediaType contentType)
Sets the content type.
|
void |
setProxyData(EntityProxyData proxyData)
Supplies the current proxy information to the action.
|
public DefaultEntityTypeActionOperation(String name)
name - the namepublic DefaultEntityTypeActionOperation()
public T processTypeResponse(com.sun.jersey.api.client.ClientResponse clientResponse)
EntityTypeActionOperationprocessTypeResponse in interface EntityTypeActionOperation<T>clientResponse - the client responsepublic javax.ws.rs.core.MultivaluedMap<String,String> getQueryParameters()
EntityTypeActionOperationgetQueryParameters in interface EntityTypeActionOperation<T>public String getVerb()
EntityTypeActionOperationgetVerb in interface EntityTypeActionOperation<T>public Object getRequestContents()
EntityTypeActionOperationgetRequestContents in interface EntityTypeActionOperation<T>public void setProxyData(EntityProxyData proxyData)
EntityOperationsetProxyData in interface EntityOperationpublic EntityProxyData getProxyData()
public String getUri()
EntityOperationgetUri in interface EntityOperationpublic javax.ws.rs.core.MediaType getContentType()
EntityOperationgetContentType in interface EntityOperationpublic javax.ws.rs.core.MediaType getAcceptType()
EntityOperationgetAcceptType in interface EntityOperationpublic Object processResponse(Object rawResponse) throws ServiceException
EntityOperationprocessResponse in interface EntityOperationrawResponse - the raw responseServiceException - the service exceptionpublic DefaultEntityTypeActionOperation<T> addQueryParameter(String key, String value)
EntityTypeActionOperationaddQueryParameter in interface EntityTypeActionOperation<T>key - the keyvalue - the valuepublic EntityTypeActionOperation<T> setContentType(javax.ws.rs.core.MediaType contentType)
EntityTypeActionOperationsetContentType in interface EntityTypeActionOperation<T>contentType - the content typepublic EntityTypeActionOperation<T> setAcceptType(javax.ws.rs.core.MediaType acceptType)
EntityTypeActionOperationsetAcceptType in interface EntityTypeActionOperation<T>acceptType - the accept type/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/