Main Content

matlab.net.http.HeaderField.displaySubclasses

클래스: matlab.net.http.HeaderField
네임스페이스: matlab.net.http

지원되는 HeaderField 서브클래스 표시

설명

예제

matlab.net.http.HeaderField.displaySubclassesmatlab.net.http.field 네임스페이스의 HeaderField 클래스에 대한 모든 서브클래스와 이 서브클래스가 지원하는 헤더 필드의 이름을 표시합니다. 이 서브클래스를 사용하여 공통 헤더 필드를 생성할 수 있습니다.

예제

[fields,names] = matlab.net.http.HeaderField.displaySubclasses는 서브클래스 이름을 fields에 string형으로 구성된 배열로 반환합니다. 이 메서드는 서브클래스가 지원하는 헤더 필드 이름을 names에 반환하는데, 서브클래스가 지원하는 string형 벡터로 구성된 셀형 배열로서 반환합니다. names{i}에는 fields(i)가 지원하는 이름이 포함됩니다. fields(i)에 지원되는 이름에 대한 제약 조건이 없으면 names{i}는 비어 있습니다.

특성

Sealedtrue
Statictrue

예제

모두 확장

matlab.net.http.field 네임스페이스의 클래스에서 모든 헤더 필드 이름을 표시합니다. IntegerField 헤더 필드 객체나 URIReferenceField 헤더 필드 객체의 이름을 선택하는 경우 이 명령을 사용하십시오. 이러한 객체의 Name 속성은 이 목록에 포함된 이름이 아니어야 합니다.

matlab.net.http.HeaderField.displaySubclasses
Available classes in matlab.net.http.field and names they support:
AcceptField              Accept
AuthenticateField        WWW-Authenticate, Proxy-Authenticate
AuthenticationInfoField  Authentication-Info, Proxy-Authentication-Info
AuthorizationField       Authorization, Proxy-Authorization
ConnectionField          Connection
ContentLengthField       Content-Length
ContentLocationField     Content-Location
ContentTypeField         Content-Type
CookieField              Cookie
DateField                Date
GenericField             
HTTPDateField            Date, Expires, Retry-After, Accept-Datetime, Last-Modified, If-Modified-Since
HostField                Host
IntegerField             
LocationField            Location
SetCookieField           Set-Cookie
URIReferenceField        

HTTPDateField 클래스를 사용하여 생성할 수 있는 헤더 필드를 표시합니다.

[fields,names] = matlab.net.http.HeaderField.displaySubclasses;
for i = 1:numel(fields)
    if (strcmp(fields(i),'HTTPDateField'))
        disp(names{i})
        break
    end
end
    "Date"    "Expires"    "Retry-After"    "Accept-Datetime"    "Last-Modified"    "If-Modified-Since"

버전 내역

R2016b에 개발됨

참고 항목

도움말 항목