Salesforce HTTP标注标头

时间:2016-08-08 10:00:22

标签: http http-headers salesforce

在Salesforce HTTP标注中,我们使用

Information:Gradle tasks [:app:assembleArmRelease]
Warning:org.hamcrest.integration.EasyMock2Adapter: can't find superclass or interface org.easymock.IArgumentMatcher
Warning:org.hamcrest.integration.JMock1Adapter: can't find superclass or interface org.jmock.core.Constraint
Warning:library class android.test.AndroidTestCase extends or implements program class junit.framework.TestCase
Warning:library class android.test.AndroidTestRunner extends or implements program class junit.runner.BaseTestRunner
Warning:library class android.test.InstrumentationTestCase extends or implements program class junit.framework.TestCase
Warning:library class android.test.InstrumentationTestSuite extends or implements program class junit.framework.TestSuite
Warning:library class android.test.suitebuilder.TestSuiteBuilder$FailedToCreateTests extends or implements program class junit.framework.TestCase
Warning:com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning:org.hamcrest.JMock1Matchers: can't find referenced class org.jmock.core.Constraint
Warning:org.hamcrest.beans.HasPropertyWithValue: can't find referenced class java.beans.PropertyDescriptor
Warning:org.hamcrest.beans.HasPropertyWithValue$2: can't find referenced class java.beans.PropertyDescriptor
Warning:org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.PropertyDescriptor
Warning:org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.Introspector
Warning:org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.BeanInfo
Warning:org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.IntrospectionException
Warning:org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.PropertyDescriptor
Warning:org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.Introspector
Warning:org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.BeanInfo
Warning:org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.PropertyDescriptor
Warning:org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.IntrospectionException
Warning:org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.PropertyDescriptor
Warning:org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning:org.hamcrest.beans.SamePropertyValuesAs$PropertyMatcher: can't find referenced class java.beans.PropertyDescriptor
Warning:org.hamcrest.integration.EasyMock2Adapter: can't find referenced class org.easymock.EasyMock
Warning:org.hamcrest.integration.EasyMock2Adapter: can't find referenced class org.easymock.IArgumentMatcher
Warning:org.hamcrest.integration.EasyMock2Adapter: can't find referenced class org.easymock.EasyMock
Warning:org.hamcrest.integration.EasyMock2Adapter: can't find referenced class org.easymock.IArgumentMatcher
Warning:org.hamcrest.integration.JMock1Adapter: can't find referenced class org.jmock.core.Constraint
Warning:org.junit.internal.runners.statements.FailOnTimeout: can't find referenced class java.lang.management.ManagementFactory
Warning:org.junit.internal.runners.statements.FailOnTimeout: can't find referenced class java.lang.management.ThreadMXBean
Warning:org.junit.internal.runners.statements.FailOnTimeout: can't find referenced class java.lang.management.ManagementFactory
Warning:org.junit.internal.runners.statements.FailOnTimeout: can't find referenced class java.lang.management.ThreadMXBean
Warning:org.junit.rules.DisableOnDebug: can't find referenced class java.lang.management.ManagementFactory
Warning:org.junit.rules.DisableOnDebug: can't find referenced class java.lang.management.RuntimeMXBean
Warning:org.junit.rules.DisableOnDebug: can't find referenced class java.lang.management.ManagementFactory
Warning:org.junit.rules.DisableOnDebug: can't find referenced class java.lang.management.RuntimeMXBean
Warning:there were 91 unresolved references to classes or interfaces.
Warning:there were 5 instances of library classes depending on program classes.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
Error:Execution failed for task  ':app:transformClassesAndResourcesWithProguardForArmRelease'.
> java.io.IOException: Please correct the above warnings first.
Information:BUILD FAILED

并将标题设置为

HttpRequest newRequest = new HttpRequest();

除了授权和内容类型之外,还可以设置哪些其他参数以及它们的用途。如果有人能指出我的描述链接,那就太好了。

1 个答案:

答案 0 :(得分:1)

根据他们的文档notes,“Salesforce”HttpRequest只是一个System.HttpRequest 所以看起来你想要一个list of HttpRequest Headers

HTTP只是一个(应该)非常标准的协议。