public class RestDCUtils
extends java.lang.Object
Constructor and Description |
---|
RestDCUtils() |
Modifier and Type | Method and Description |
---|---|
static StructureDef |
convertStructureDef(StructureDefImpl rtStruct,
java.util.Map visited)
Converts a runtime structure def to a jsr 227 defined structure.
|
static HTTPClient.NVPair[] |
convertToNVPair(java.util.Map httpParams) |
static java.lang.Object |
createEmptyDataSet(StructureDefinition struc,
boolean isCollection)
Creates an empty data set for a given structure.
|
static StandardOperationDef |
createParentedOp(StandardOperationDef op,
StructureDef parent) |
static java.lang.String |
extractFile(java.lang.String absoluteURL) |
static java.lang.String |
getChildsRefLink(java.util.Map linksMap,
java.lang.String childName) |
static com.sun.jersey.api.client.ClientResponse |
getClientResponse(RestConnection restConn,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> headers)
Fetches the connection response for only Get operation
|
static com.sun.jersey.api.client.ClientResponse |
getClientResponse(RestConnection restConn,
java.lang.String path,
java.lang.String urlQuery,
java.util.Map<java.lang.String,java.lang.Object> headers)
Fetches the connection response for only Get operation
|
static com.sun.jersey.api.client.ClientResponse |
getClientResponse(RestConnection restConn,
java.lang.String httpMethod,
java.lang.String path,
java.lang.String urlQuery,
java.util.Map<java.lang.String,java.lang.Object> headers,
java.io.ByteArrayOutputStream out)
Fetches the connection response for only Get operation
|
static com.sun.jersey.api.client.ClientResponse |
getClientResponse(com.sun.jersey.api.client.WebResource resource,
java.util.Map<java.lang.String,java.lang.Object> headers,
java.io.ByteArrayOutputStream out,
java.lang.String httpMethod) |
static java.io.InputStream |
getFileInputData(URLConnection urlConn) |
static java.io.InputStream |
getHttpResponse(URLConnection urlConn,
java.lang.String path,
HTTPClient.NVPair[] headers)
Fetches the connection response for only Get operation
|
static java.io.InputStream |
getHttpResponse(URLConnection urlConn,
java.lang.String path,
java.lang.String urlQuery,
HTTPClient.NVPair[] headers)
Fetches the connection response for only Get operation
|
static java.io.InputStream |
getHttpResponse(URLConnection urlConn,
java.lang.String httpMethod,
java.lang.String path,
java.lang.String urlQuery,
HTTPClient.NVPair[] headers,
java.io.ByteArrayOutputStream out)
Fetches the connection response based on the httpMethod passed to this api.
|
static oracle.adf.share.logging.ADFLogger |
getLogger()
Returns the logger for RestDC.
|
static java.io.InputStream |
getResponse(com.sun.jersey.api.client.ClientResponse resp)
Get inputstream of response
|
static HTTPClient.HTTPResponse |
getResponse(HTTPClient.HTTPConnection httpInteraction,
java.lang.String pathAndQuery,
HTTPClient.NVPair[] headers,
java.io.ByteArrayOutputStream out,
java.lang.String httpMethod) |
static java.lang.String |
getSelfLink(java.util.Map linksMap) |
public static HTTPClient.NVPair[] convertToNVPair(java.util.Map httpParams)
public static StandardOperationDef createParentedOp(StandardOperationDef op, StructureDef parent)
public static java.lang.String extractFile(java.lang.String absoluteURL) throws java.net.MalformedURLException
java.net.MalformedURLException
public static com.sun.jersey.api.client.ClientResponse getClientResponse(RestConnection restConn, java.lang.String httpMethod, java.lang.String path, java.lang.String urlQuery, java.util.Map<java.lang.String,java.lang.Object> headers, java.io.ByteArrayOutputStream out) throws java.net.URISyntaxException, java.net.MalformedURLException
urlConn
- path
- headers
- java.net.URISyntaxException
java.net.MalformedURLException
public static com.sun.jersey.api.client.ClientResponse getClientResponse(RestConnection restConn, java.lang.String path, java.util.Map<java.lang.String,java.lang.Object> headers) throws java.net.URISyntaxException, java.net.MalformedURLException
urlConn
- path
- headers
- java.net.URISyntaxException
java.net.MalformedURLException
public static com.sun.jersey.api.client.ClientResponse getClientResponse(RestConnection restConn, java.lang.String path, java.lang.String urlQuery, java.util.Map<java.lang.String,java.lang.Object> headers) throws java.net.URISyntaxException, java.net.MalformedURLException
urlConn
- path
- headers
- java.net.URISyntaxException
java.net.MalformedURLException
public static java.io.InputStream getResponse(com.sun.jersey.api.client.ClientResponse resp)
resp
- public static java.io.InputStream getHttpResponse(URLConnection urlConn, java.lang.String path, HTTPClient.NVPair[] headers)
urlConn
- path
- headers
- public static java.io.InputStream getHttpResponse(URLConnection urlConn, java.lang.String path, java.lang.String urlQuery, HTTPClient.NVPair[] headers)
urlConn
- path
- urlQuery
- headers
- public static java.io.InputStream getHttpResponse(URLConnection urlConn, java.lang.String httpMethod, java.lang.String path, java.lang.String urlQuery, HTTPClient.NVPair[] headers, java.io.ByteArrayOutputStream out)
urlConn
- httpMethod
- path
- urlQuery
- headers
- out
- public static java.lang.Object createEmptyDataSet(StructureDefinition struc, boolean isCollection)
struc
- the structure for which the empty row will be created.isCollection
- true if the return data set is a collection.Map
representing the row structure. In case of a
collection data, it returns a Collection
. The returned
object will preserve the structure hierarchy as defined by the
given structure definition.public static java.io.InputStream getFileInputData(URLConnection urlConn)
public static oracle.adf.share.logging.ADFLogger getLogger()
public static StructureDef convertStructureDef(StructureDefImpl rtStruct, java.util.Map visited)
public static com.sun.jersey.api.client.ClientResponse getClientResponse(com.sun.jersey.api.client.WebResource resource, java.util.Map<java.lang.String,java.lang.Object> headers, java.io.ByteArrayOutputStream out, java.lang.String httpMethod)
public static HTTPClient.HTTPResponse getResponse(HTTPClient.HTTPConnection httpInteraction, java.lang.String pathAndQuery, HTTPClient.NVPair[] headers, java.io.ByteArrayOutputStream out, java.lang.String httpMethod)
public static java.lang.String getSelfLink(java.util.Map linksMap)
public static java.lang.String getChildsRefLink(java.util.Map linksMap, java.lang.String childName)