net.sf.sail.webapp.dao.sds.impl
Class AbstractHttpRestCommand

java.lang.Object
  extended by net.sf.sail.webapp.dao.sds.impl.AbstractHttpRestCommand
Direct Known Subclasses:
SdsCurnitCreateCommandHttpRestImpl, SdsCurnitListCommandHttpRestImpl, SdsCurnitUpdateCommandHttpRestImpl, SdsJnlpCreateCommandHttpRestImpl, SdsJnlpUpdateCommandHttpRestImpl, SdsOfferingCreateCommandHttpRestImpl, SdsOfferingGetCommandHttpRestImpl, SdsOfferingListCommandHttpRestImpl, SdsOfferingUpdateCommandHttpRestImpl, SdsUserCreateCommandHttpRestImpl, SdsUserUpdateCommandHttpRestImpl, SdsWorkgroupCreateCommandHttpRestImpl, SdsWorkgroupGetCommandHttpRestImpl, SdsWorkgroupMemberCreateCommandHttpRestImpl, SdsWorkgroupUpdateCommandHttpRestImpl

public abstract class AbstractHttpRestCommand
extends Object

Abstract implementation of an SDS command using HTTP REST.

Version:
$Id$
Author:
Cynick Young

Field Summary
static Map<String,String> EMPTY_STRING_MAP
           
protected static org.apache.commons.logging.Log logger
           
static Map<String,String> REQUEST_HEADERS_ACCEPT
           
protected static Map<String,String> REQUEST_HEADERS_CONTENT
           
protected  HttpRestTransport transport
           
 
Constructor Summary
AbstractHttpRestCommand()
           
 
Method Summary
protected static String convertXMLInputStreamToString(InputStream stream)
           
protected  org.jdom.Document convertXmlInputStreamToXmlDocument(InputStream inputStream)
           
 void setTransport(HttpRestTransport transport)
          Sets the http REST transport mechanism for the create command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_STRING_MAP

public static final Map<String,String> EMPTY_STRING_MAP

REQUEST_HEADERS_CONTENT

protected static final Map<String,String> REQUEST_HEADERS_CONTENT

REQUEST_HEADERS_ACCEPT

public static final Map<String,String> REQUEST_HEADERS_ACCEPT

logger

protected static final org.apache.commons.logging.Log logger

transport

protected HttpRestTransport transport
Constructor Detail

AbstractHttpRestCommand

public AbstractHttpRestCommand()
Method Detail

setTransport

public void setTransport(HttpRestTransport transport)
Sets the http REST transport mechanism for the create command.

Parameters:
transport - the transport to set

convertXmlInputStreamToXmlDocument

protected org.jdom.Document convertXmlInputStreamToXmlDocument(InputStream inputStream)

convertXMLInputStreamToString

protected static String convertXMLInputStreamToString(InputStream stream)


Copyright © 2012. All Rights Reserved.