public class DefaultActionOperation extends Object implements EntityActionOperation
| Constructor and Description |
|---|
DefaultActionOperation()
Instantiates a new default action operation.
|
DefaultActionOperation(String name)
The default action operation.
|
| Modifier and Type | Method and Description |
|---|---|
EntityActionOperation |
addBodyParameter(String key,
Object value)
Adds the body parameter.
|
DefaultActionOperation |
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.
|
Map<String,Object> |
getBodyParameters()
Gets the body parameters.
|
javax.ws.rs.core.MediaType |
getContentType()
Get the MIME type for the content that's being sent to the server.
|
protected EntityProxyData |
getProxyData()
Get the current proxy data.
|
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.
|
DefaultActionOperation |
setAcceptType(javax.ws.rs.core.MediaType acceptType)
Sets the accept type.
|
DefaultActionOperation |
setContentType(javax.ws.rs.core.MediaType contentType)
Sets the content type.
|
void |
setProxyData(EntityProxyData proxyData)
Supplies the current proxy information to the action.
|
public DefaultActionOperation(String name)
name - the namepublic DefaultActionOperation()
public void setProxyData(EntityProxyData proxyData)
EntityOperationsetProxyData in interface EntityOperationprotected EntityProxyData getProxyData()
public String getUri()
EntityOperationgetUri in interface EntityOperationpublic javax.ws.rs.core.MultivaluedMap<String,String> getQueryParameters()
EntityActionOperationgetQueryParameters in interface EntityActionOperationpublic DefaultActionOperation addQueryParameter(String key, String value)
EntityActionOperationaddQueryParameter in interface EntityActionOperationkey - the keyvalue - the valuepublic javax.ws.rs.core.MediaType getContentType()
EntityOperationgetContentType in interface EntityOperationpublic DefaultActionOperation setContentType(javax.ws.rs.core.MediaType contentType)
setContentType in interface EntityActionOperationcontentType - the content typepublic javax.ws.rs.core.MediaType getAcceptType()
EntityOperationgetAcceptType in interface EntityOperationpublic DefaultActionOperation setAcceptType(javax.ws.rs.core.MediaType acceptType)
acceptType - the accept typepublic String getVerb()
EntityActionOperationgetVerb in interface EntityActionOperationpublic Object getRequestContents()
EntityActionOperationgetRequestContents in interface EntityActionOperationpublic Object processResponse(Object rawResponse) throws ServiceException
EntityOperationprocessResponse in interface EntityOperationrawResponse - the raw responseServiceException - the service exceptionpublic Map<String,Object> getBodyParameters()
EntityActionOperationgetBodyParameters in interface EntityActionOperationpublic EntityActionOperation addBodyParameter(String key, Object value)
EntityActionOperationaddBodyParameter in interface EntityActionOperationkey - the keyvalue - the value/**
* 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.
*/