jenkins.plugins.http_request
Class HttpRequest

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by jenkins.plugins.http_request.HttpRequest
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class HttpRequest
extends hudson.tasks.Builder

Author:
Janario Oliveira

Nested Class Summary
static class HttpRequest.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
HttpRequest(String url, HttpMode httpMode, String authentication, MimeType contentType, MimeType acceptType, String outputFile, Boolean returnCodeBuildRelevant, Boolean consoleLogResponseBody, Boolean passBuildParameters, List<NameValuePair> customHeaders, Integer timeout, String validResponseCodes)
           
 
Method Summary
 void defineDefaultConfigurations()
           
 MimeType getAcceptType()
           
 String getAuthentication()
           
 Boolean getConsoleLogResponseBody()
           
 MimeType getContentType()
           
 List<NameValuePair> getCustomHeaders()
           
 HttpRequest.DescriptorImpl getDescriptor()
           
 HttpMode getHttpMode()
           
 String getOutputFile()
           
 Boolean getPassBuildParameters()
           
 Integer getTimeout()
           
 String getUrl()
           
 String getValidResponseCodes()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 Object readResolve()
           
static void xStreamCompatibility()
           
 
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, prebuild
 

Constructor Detail

HttpRequest

@DataBoundConstructor
public HttpRequest(String url,
                                        HttpMode httpMode,
                                        String authentication,
                                        MimeType contentType,
                                        MimeType acceptType,
                                        String outputFile,
                                        Boolean returnCodeBuildRelevant,
                                        Boolean consoleLogResponseBody,
                                        Boolean passBuildParameters,
                                        List<NameValuePair> customHeaders,
                                        Integer timeout,
                                        String validResponseCodes)
            throws URISyntaxException
Throws:
URISyntaxException
Method Detail

xStreamCompatibility

@Initializer(before=PLUGINS_STARTED)
public static void xStreamCompatibility()

readResolve

public Object readResolve()

defineDefaultConfigurations

public void defineDefaultConfigurations()

getConsoleLogResponseBody

public Boolean getConsoleLogResponseBody()

getUrl

public String getUrl()

getHttpMode

public HttpMode getHttpMode()

getContentType

public MimeType getContentType()

getAcceptType

public MimeType getAcceptType()

getCustomHeaders

public List<NameValuePair> getCustomHeaders()

getOutputFile

public String getOutputFile()

getAuthentication

public String getAuthentication()

getPassBuildParameters

public Boolean getPassBuildParameters()

getTimeout

public Integer getTimeout()

getValidResponseCodes

public String getValidResponseCodes()

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws InterruptedException,
                       IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
InterruptedException
IOException

getDescriptor

public HttpRequest.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>
Overrides:
getDescriptor in class hudson.tasks.Builder


Copyright © 2004-2015. All Rights Reserved.