Package org.yamcs.api

Interface HttpBodyOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    HttpBody, HttpBody.Builder

    public interface HttpBodyOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasContentType

        boolean hasContentType()
         The Content-Type header value for this body.
         If unspecified, defaults to application/octet-stream
         
        optional string content_type = 1;
      • getContentType

        String getContentType()
         The Content-Type header value for this body.
         If unspecified, defaults to application/octet-stream
         
        optional string content_type = 1;
      • getContentTypeBytes

        com.google.protobuf.ByteString getContentTypeBytes()
         The Content-Type header value for this body.
         If unspecified, defaults to application/octet-stream
         
        optional string content_type = 1;
      • hasFilename

        boolean hasFilename()
         If set, a Content-Disposition header is added
         to the response. Weg agents use this to trigger
         a download.
         
        optional string filename = 2;
      • getFilename

        String getFilename()
         If set, a Content-Disposition header is added
         to the response. Weg agents use this to trigger
         a download.
         
        optional string filename = 2;
      • getFilenameBytes

        com.google.protobuf.ByteString getFilenameBytes()
         If set, a Content-Disposition header is added
         to the response. Weg agents use this to trigger
         a download.
         
        optional string filename = 2;
      • hasData

        boolean hasData()
         The body as raw binary
         
        optional bytes data = 3;
      • getData

        com.google.protobuf.ByteString getData()
         The body as raw binary
         
        optional bytes data = 3;
      • getMetadataCount

        int getMetadataCount()
         Any other metadata (used in multipart/form)
         
        map<string, string> metadata = 4;
      • containsMetadata

        boolean containsMetadata​(String key)
         Any other metadata (used in multipart/form)
         
        map<string, string> metadata = 4;
      • getMetadataMap

        Map<String,​String> getMetadataMap()
         Any other metadata (used in multipart/form)
         
        map<string, string> metadata = 4;
      • getMetadataOrDefault

        String getMetadataOrDefault​(String key,
                                    String defaultValue)
         Any other metadata (used in multipart/form)
         
        map<string, string> metadata = 4;
      • getMetadataOrThrow

        String getMetadataOrThrow​(String key)
         Any other metadata (used in multipart/form)
         
        map<string, string> metadata = 4;